# deno-api-proxy
**Repository Path**: hipyp/deno-api-proxy
## Basic Information
- **Project Name**: deno-api-proxy
- **Description**: No description available
- **Primary Language**: TypeScript
- **License**: Not specified
- **Default Branch**: main
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2025-02-07
- **Last Updated**: 2025-02-07
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# Deno API Proxy
# [中文版本](README.MD)
### Author: Tech PaPaXia
Find me on Bilibili, YouTube, TikTok, and WeChat Official Account under the same name. Please credit the author when sharing.
## Project Overview
Use Deno to proxy Open AI, Claude, Groq and other APIs to mainland China, breaking geographical restrictions.
## Deno Deployment (Recommended)
1. Login/Register at [https://dash.deno.com/account/projects](https://dash.deno.com/account/projects)
2. Click "New Playground" in the top right corner
3. Copy all code from main.ts into the playground
4. Click "Save & Deploy"
5. Check the deployed service domain name (looks like: xxx.deno.dev)
6. Fill in your domain name, service name to proxy, and API Key in the commands below
Proxy OpenAI
```
curl --location 'https://YOUR-DOMAIN/api.openai.com/v1/chat/completions' \
--header 'Authorization: Bearer YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "system",
"content": "You are a test assistant."
},
{
"role": "user",
"content": "Testing. Just say hi and nothing else."
}
],
"model": "gemini-2.0-flash-exp"
}'
```
Proxy Groq
```
curl --location 'https://YOUR-DOMAIN/api.groq.com/v1/chat/completions' \
--header 'Authorization: Bearer YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data '{
"messages": [
{
"role": "system",
"content": "You are a test assistant."
},
{
"role": "user",
"content": "Testing. Just say hi and nothing else."
}
],
"model": "gemini-2.0-flash-exp"
}'
```