Skip to content

OpenAI-compatible API

Learn the Base URL, authentication, and minimal request for calling the OpenAI-compatible API through Qiuqiu Token.

Use the OpenAI-compatible API for custom HTTP requests, OpenAI-compatible SDKs, and clients that ask for a /v1 Base URL. Codex CLI, Grok CLI, OpenCode, and Cherry Studio’s OpenAI provider use this address format.

OpenAI-compatible Base URL
https://api.qiuqiutoken.net/v1
POST/v1/chat/completions
Chat Completions
https://api.qiuqiutoken.net/v1/chat/completions
POST/v1/responses
Responses
https://api.qiuqiutoken.net/v1/responses
  1. Prepare an API token.

    Create the API token in the console. Use a token group that matches the client or model scenario you want to call. The examples use sk-your-token as a placeholder; replace it with your API token when sending a real request.

  2. Confirm the model name.

    The model value must be an available model name from the Model Catalog. <model-id> in the example is only a placeholder.

  3. Confirm the access route.

    Use the Base URL above by default. If the network is unstable, choose another OpenAI-compatible address with the same format from API Access Routes.

bash
curl https://api.qiuqiutoken.net/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer sk-your-token" \
-d '{
  "model": "<model-id>",
  "messages": [
    { "role": "user", "content": "Introduce Qiuqiu Token in one sentence." }
  ]
}'

When using an official OpenAI example, replace the Base URL with the address above and enter the API token created in the console. For request fields, response structures, and other endpoints, see the official OpenAI API Reference.