The GlobalAI OPC API provides REST endpoints for generating text, images, and videos using state-of-the-art AI models. All endpoints use Bearer token authentication. Whether you are building conversational applications, generating creative imagery, or producing AI-driven video content, this reference covers every endpoint, parameter, and response format you need.Documentation Index
Fetch the complete documentation index at: https://docs.xingchaoyiqing.com/llms.txt
Use this file to discover all available pages before exploring further.
Base URLs
Use the appropriate base URL for the API category you are calling:Authentication
Include your API key as a Bearer token on every request:YOUR_API_KEY with the key issued to your account. Contact GlobalAI OPC support if you need to obtain or rotate a key.
API Categories
Text APIs
OpenAI-compatible chat, Claude Messages, and Gemini native endpoints for intelligent conversation and text generation.
Image APIs
Nano Banana and GPT Image 2 endpoints for high-quality image generation from text prompts.
Video APIs
Nine video model families — including Sora, VEO, Seedance, Vidu, and Grok — for text-to-video and image-to-video generation.
Asset Management
Upload and manage reference media assets used as inputs for image-to-video and guided generation workflows.
Video Generation Models
The table below summarises the available video models, their creation endpoints, maximum output resolution, and supported duration range.| Model | Endpoint | Max Resolution | Duration |
|---|---|---|---|
| Sora | POST /v1/sora/videos | 1280×720 | 4–12s |
| VEO | POST /v1/veo/videos | 4K | fixed |
| Seedance 1.5 | POST /v1/seedance/videos | 1080p | 2–12s |
| Seedance 2.0 | POST /v1/kyyvideo2/videos | varies | 4–15s |
| Vidu | POST /v1/vidu/videos | 1080p | 1–16s |
| Grok | POST /v1/grok/videos | 720p | 6–30s |
| StarVideos | POST /v1/starvideos/videos | varies | 3–15s |
| Videos | POST /v1/videos/videos | 720p | 4–15s |
| SD2 Manxue | POST /v1/sd2_manxue/videos | 4K | 4–15s |
Async Task Flow
Video and image generation are asynchronous. Follow these three steps after making a creation request:- Create the task — send a
POSTrequest to the relevant endpoint. The response returns a taskid. - Poll for status — send
GET /v1/result/{id}repeatedly and inspect thestatusfield in the response. - Retrieve the result — when
statusiscompleted, read thevideo_urlorimage_urlfield to access your generated asset.
Common Response Statuses
Every task query response includes astatus field with one of the following values:
| Status | Description |
|---|---|
queued | Waiting to be processed |
processing | Currently generating |
completed | Done — result URL available |
failed | Generation failed — check the error field for details |
Next Steps
Quickstart
Get your first API call working in minutes with step-by-step instructions and copy-ready code samples.
Authentication
Learn how to obtain your API key, set up Bearer token headers, and manage credentials securely.