Documentation

API Guide

Updated: Nov 11, 2026

Base URLs, authentication, and common request and response headers for the Token Exchange API.

This guide covers the information that applies to all APIs. For the path, parameters, and response format of each API, see the API reference pages in the sidebar. For troubleshooting failed requests, see Error Handling.

1. Before You Begin

  1. Create an API Key in the Developer Center.
  2. Send requests using the base URL and headers described below.

2. Base URLs

RegionBase URL (base_url)Notes
Guangzhouhttps://api.cysuo.comSynchronous APIs: Chat and Images
Beijinghttps://vod.bj.baidubce.comAsynchronous APIs: Videos

Append the API path to the base URL to form the request URL. For example, the Chat Completions endpoint is https://api.cysuo.com/v1/chat/completions.

3. Authentication

Authenticate each request by including your API Key in the Authorization header using the Bearer scheme:

Authorization: Bearer YOUR_API_KEY

Replace YOUR_API_KEY with an API Key created in the Developer Center.

4. Common Request Headers

HeaderRequiredDescription
AuthorizationYesYour API Key, in the format Bearer YOUR_API_KEY
Content-TypeConditionalRequired for requests with a body. Usually application/json; multipart/form-data for image edits.
X-Vod-Request-IdNoSupported by Chat and Images APIs only. A custom request ID used for request tracing. If omitted, the system generates one. Must be 16–64 characters long, or a 400 error is returned. The same account cannot reuse a value within 8 hours, or a 409 error is returned.

5. Common Response Headers

HeaderAlways ReturnedDescription
X-Vod-Task-IdYesA globally unique task ID assigned to each request, for use in analytics, logging, and troubleshooting. Include this ID when contacting support.
X-Vod-Request-IdYesReturned by Chat and Images APIs only. Used for request tracing only. Do not use it for record-keeping or analytics.

6. Example Request

curl -i https://api.cysuo.com/v1/chat/completions \  -H "Authorization: Bearer YOUR_API_KEY" \  -H "Content-Type: application/json" \  -d '{    "model": "deepseek-v4-flash",    "messages": [{"role": "user", "content": "Hello, please introduce yourself."}]  }'

The -i option includes the response headers in the output, where you can find X-Vod-Task-Id and X-Vod-Request-Id.