API Docs

OpenAI-compatible API. Change one line of code and you're connected.

Quick Start

Prerequisites

Python

from openai import OpenAI

client = OpenAI(
    base_url="https://gptapi.net.cn/v1",
    api_key="sk-your-key-here"
)

response = client.chat.completions.create(
    model="deepseek-v4-pro",
    messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)

curl

curl https://gptapi.net.cn/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "deepseek-v4-pro",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Node.js

import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://gptapi.net.cn/v1",
  apiKey: "sk-your-key-here",
});

const response = await client.chat.completions.create({
  model: "deepseek-v4-pro",
  messages: [{ role: "user", content: "Hello!" }],
});
console.log(response.choices[0].message.content);

Models & Pricing

All prices in USD per 1M tokens. Pay-as-you-go, no subscription.

ModelProviderInput/1MOutput/1MContext
deepseek-v4-proDeepSeek$0.60$1.801M
deepseek-v4-flashDeepSeek$0.20$0.851M
kimi-k3Moonshot$3.00$12.00128K
kimi-k2.7-codeMoonshot$1.20$3.60128K
moonshot-v1-128kMoonshot$0.80$2.40128K
moonshot-v1-32kMoonshot$0.50$1.5032K
moonshot-v1-8kMoonshot$0.25$0.758K
qwen3.7-maxAlibaba$1.20$3.50128K
qwen3.7-plusAlibaba$0.25$0.78128K
qwen-image-2.0-proAlibaba$2.00$6.00-
qwen3.7-text-embeddingAlibaba$0.01$0.01-
doubao-pro-128kByteDance$1.00$4.50128K
doubao-lite-32kByteDance$0.10$0.3032K
glm-5.2Zhipu$0.80$2.40128K

View all models →

Endpoints

Chat Completions

POST https://gptapi.net.cn/v1/chat/completions

Fully compatible with the OpenAI Chat Completions API. Supports streaming, tools/function calling, and all standard parameters.

Image Generation

POST https://gptapi.net.cn/v1/images/generations

Use with qwen-image-2.0-pro. Supports standard OpenAI image generation parameters.

Embeddings

POST https://gptapi.net.cn/v1/embeddings

Use with qwen3.7-text-embedding.

List Models

GET https://gptapi.net.cn/v1/models

Returns all available models with IDs and metadata.

Vision (Image Input)

Supported models: kimi-k3, moonshot-v1-128k-vision-preview, moonshot-v1-32k-vision-preview, moonshot-v1-8k-vision-preview

curl https://gptapi.net.cn/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -d '{
    "model": "kimi-k3",
    "messages": [{
      "role": "user",
      "content": [
        {"type": "text", "text": "What is in this image?"},
        {"type": "image_url", "image_url": {"url": "https://example.com/photo.jpg"}}
      ]
    }]
  }'

Billing

Official Quality Guarantee

Unlike some API gateways that route your requests through quantized or lower-quality model versions, Express API connects directly to official vendor APIs. You always get the exact model you pay for — full precision, no compression, no surprises.

Need Help?

Email: support@gptapi.net.cn