API
API overview
Give this link to an AI with browsing access. If it cannot reach this site, copy the guide instead.
Preview overview
Paste into an AI assistant to help with integration. Documentation and examples only; no real credentials.
Updated · Reviewed
Give this guide or its AI reading link to an assistant to find capabilities, endpoints, authentication, and detailed integration instructions for your task.
This platform exposes multiple model protocols through one site, together with account, API key, task result, usage, and pricing endpoints. Choose a protocol for the task, then integrate using its endpoint reference.
Generated from this site's published reference catalog: 109 reference entries. Different protocol uses of one path may have separate entries. This is not a guarantee of runtime availability or successful upstream testing.
API base URL: https://api.tu-zi.com
Guide updated: 2026-11-04
Stable AI reading link: https://api.tu-zi.com/en/docs/api/overview.md
How to use this guide for a user's task
- Identify the desired task, inputs, and outputs. Ask for missing requirements when necessary.
- Use the capability map and workflows below to choose candidates, then consult the complete endpoint index.
- Read the candidate's AI reference link for authentication, parameters, examples, responses, errors, and constraints before writing code. The index is not a complete request schema; do not invent fields.
- Check current model availability, supported endpoints, account permissions, and prices. Provider model catalogs do not guarantee availability on this site or for this account.
- Keep submission, polling, and results within the same protocol. WebSocket, SSE, and ordinary JSON are not interchangeable. Acceptance does not mean generation has completed.
- If you cannot browse or access a reference, say so and ask the user to copy that endpoint's integration guide. Do not claim to have read inaccessible content.
This is documentation and examples only. Confirm the user's intent before performing paid generation or key mutations. Use environment variables in examples rather than asking for credentials in chat.
Capability map
| User need | Capabilities and guides |
|---|---|
| Chat, writing, coding, text reasoning | Guide · text |
| Generate or edit images | Guide · images |
| Generate video, image to video | Guide · video |
| Speech synthesis, transcription, realtime audio, interpretation, music | Guide · speech / realtime / music |
| Knowledge bases, embeddings, reranking | Guide · retrieval |
| Tool use and application orchestration | Guide · text |
Applications still compose these capabilities: a knowledge base needs data processing and retrieval orchestration, rather than an undocumented turnkey endpoint. Account, key, usage, pricing, and top-up record endpoints are indexed below.
Integration and authentication
- Inference calls use inference API keys; account management uses account system tokens. Do not interchange them. Read each reference for exact headers and exceptions.
- With a system token, bootstrap identity to obtain the user ID; subsequent account endpoints usually also require New-Api-User. Bootstrap does not accept inference keys or browser cookies instead of a system token.
- Anonymous endpoints may return different data when authenticated. Check model access, groups, and prices for the actual account.
- JSON, multipart, and WebSocket in the index describe request transport. Read details for streaming responses and asynchronous completion.
Common workflows
- Integrate chat or text generation:List callable models → OpenAI Chat Completions
- Standard video tasks: submit, poll, download:OpenAI Video → Retrieve a unified video or image task → Download video task content
- Kling image to video: submit and poll:Kling Image to Video → Retrieve a Kling videos task
- Generate music and retrieve results:Suno Music Generation → Retrieve a Suno v2 task
- Bootstrap identity, create an inference key, inspect usage:Bootstrap account identity → Create an API key → List usage logs
Do not mix task IDs, polling paths, or result fields across providers. Read the chosen reference for image input formats, models, task states, and polling intervals.
Complete endpoint index
Text generation (6)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Anthropic Messages · AI | POST /v1/messages · json | Inference API key | Anthropic Messages |
| Gemini Generate Content · AI | POST /v1beta/models/{model}:generateContent · json | Inference API key | Gemini Generate Content |
| JEV SystemOne · AI | POST /v1/systemone · json | Inference API key | JEV SystemOne |
| OpenAI Chat Completions · AI | POST /v1/chat/completions · json | Inference API key | OpenAI Chat Completions |
| OpenAI Responses · AI | POST /v1/responses · json | Inference API key | OpenAI Responses |
| OpenAI Responses Compact · AI | POST /v1/responses/compact · json | Inference API key | Responses context compaction for existing conversations. Returns reusable output items and does not support streaming. |
Images (7)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Asynchronous image generation · AI | POST /v1/videos · json | Inference API key | Gateway asynchronous image extension: create a task with image parameters, then poll for the image. The /v1/videos path does not make this a video task. |
| Black Forest Labs FLUX · AI | POST /flux/v1/flux-3-image · json | Inference API key | Gateway FLUX native compatibility route, restricted to flux-3-image. Use the listed model protocols for other FLUX models. |
| Gemini Image Generation · AI | POST /v1beta/models/{model}:generateContent · json | Inference API key | Generate images through Gemini generateContent; responses may contain both text and image parts. |
| Image Generation · AI | POST /v1/images/generations · json | Inference API key | Image Generation |
| Kling Image Generation · AI | POST /kling/v1/images/generations · json | Inference API key | Kling Image Generation |
| OpenAI Image Edit · AI | POST /v1/images/edits · multipart | Inference API key | OpenAI Image Edit |
| Submit a Midjourney imagine task · AI | POST /mj/submit/imagine · json | Inference API key | Create an image task through the gateway compatibility endpoint. |
Video generation (3)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Kling Image to Video · AI | POST /kling/v1/videos/image2video · json | Inference API key | Kling Image to Video |
| Kling Text to Video · AI | POST /kling/v1/videos/text2video · json | Inference API key | Kling Text to Video |
| OpenAI Video · AI | POST /v1/videos · json | Inference API key | OpenAI Video |
Speech (3)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| OpenAI Audio Transcription · AI | POST /v1/audio/transcriptions · multipart | Inference API key | OpenAI Audio Transcription |
| OpenAI Audio Translation · AI | POST /v1/audio/translations · multipart | Inference API key | OpenAI Audio Translation |
| OpenAI Text to Speech · AI | POST /v1/audio/speech · json | Inference API key | OpenAI Text to Speech |
Realtime (2)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Gemini Live WebSocket · AI | GET /v1beta/live?model={model} · websocket | Inference API key | Gemini Live WebSocket |
| Interpretation WebSocket · AI | GET /v1/realtime?model={model} · websocket | Inference API key | Simultaneous interpretation over Protobuf binary WebSocket frames. |
Music and sound (27)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Suno Add Instrumental · AI | POST /suno/v2/add-instrumental · json | Inference API key | Suno Add Instrumental: suno/add-instrumental. |
| Suno Add Vocals · AI | POST /suno/v2/add-vocals · json | Inference API key | Suno Add Vocals: suno/add-vocals. |
| Suno Audio Upload · AI | POST /suno/v2/upload · json | Inference API key | Suno Audio Upload: suno/upload. |
| Suno Cover · AI | POST /suno/v2/cover · json | Inference API key | Suno Cover: suno/cover. |
| Suno Extension · AI | POST /suno/v2/extend · json | Inference API key | Suno Extension: suno/extend. |
| Suno Full Stem Separation · AI | POST /suno/v2/stems-all · json | Inference API key | Suno Full Stem Separation: suno/stems-all. |
| Suno Lyric Timings · AI | POST /suno/v2/aligned-lyrics · json | Inference API key | Suno Lyric Timings: suno/aligned-lyrics. |
| Suno Lyric Writing · AI | POST /suno/v2/lyrics · json | Inference API key | Suno Lyric Writing: suno/lyrics. |
| Suno MIDI Export · AI | POST /suno/v2/gen-midi · json | Inference API key | Suno MIDI Export: suno/gen-midi. |
| Suno Mashup · AI | POST /suno/v2/mashup · json | Inference API key | Suno Mashup: suno/mashup. |
| Suno Model Training · AI | POST /suno/v2/create-model · json | Inference API key | Suno Model Training: suno/create-model. |
| Suno Multi-format Export · AI | POST /suno/v2/download · json | Inference API key | Suno Multi-format Export: suno/download. |
| Suno Music Generation · AI | POST /suno/v2/music · json | Inference API key | Suno Music Generation: suno/music. |
| Suno Reference Generation · AI | POST /suno/v2/inspo · json | Inference API key | Suno Reference Generation: suno/inspo. |
| Suno Remaster · AI | POST /suno/v2/remaster · json | Inference API key | Suno Remaster: suno/remaster. |
| Suno Sample Rework · AI | POST /suno/v2/sample · json | Inference API key | Suno Sample Rework: suno/sample. |
| Suno Section Rewrite · AI | POST /suno/v2/replace-section · json | Inference API key | Suno Section Rewrite: suno/replace-section. |
| Suno Segment Merge · AI | POST /suno/v2/concat · json | Inference API key | Suno Segment Merge: suno/concat. |
| Suno Sound Effects · AI | POST /suno/v2/sounds · json | Inference API key | Suno Sound Effects: suno/sounds. |
| Suno Speed Adjustment · AI | POST /suno/v2/adjust-speed · json | Inference API key | Suno Speed Adjustment: suno/adjust-speed. |
| Suno Stem Layering · AI | POST /suno/v2/add-stem · json | Inference API key | Suno Stem Layering: suno/add-stem. |
| Suno Style Expansion · AI | POST /suno/v2/upsample-tags · json | Inference API key | Suno Style Expansion: suno/upsample-tags. |
| Suno Upload & Cover · AI | POST /suno/v2/upload-cover · json | Inference API key | Suno Upload & Cover: suno/upload-cover. |
| Suno Upload & Extend · AI | POST /suno/v2/upload-extend · json | Inference API key | Suno Upload & Extend: suno/upload-extend. |
| Suno Vocal Separation · AI | POST /suno/v2/stems · json | Inference API key | Suno Vocal Separation: suno/stems. |
| Suno Voice Capture · AI | POST /suno/v2/persona · json | Inference API key | Suno Voice Capture: suno/persona. |
| Suno Voice Cloning · AI | POST /suno/v2/create-voice · json | Inference API key | Suno Voice Cloning: suno/create-voice. |
Embeddings and retrieval (2)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Embeddings · AI | POST /v1/embeddings · json | Inference API key | Embeddings |
| Jina Rerank · AI | POST /v1/rerank · json | Inference API key | Jina Rerank |
Available models (5)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Get paginated marketplace model information · AI | GET /api/pricing/models · json | Anonymous; may vary when authenticated | Get paginated marketplace model information. Returns data visible to the current account. |
| List callable models · AI | GET /v1/models · json | Inference API key | List callable models. Fields and permissions follow this gateway implementation. |
| List models in Gemini format · AI | GET /v1beta/models · json | Inference API key | List models in Gemini format within the current credential scope. |
| List models through the Gemini compatible endpoint · AI | GET /v1beta/openai/models · json | Inference API key | List models through the Gemini compatible endpoint within the current credential scope. |
| Retrieve model metadata · AI | GET /v1/models/{model} · json | Inference API key | List callable models. Fields and permissions follow this gateway implementation. |
Image and video tasks (7)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Download video task content · AI | GET /v1/videos/{task_id}/content · json | Inference API key | Download video task content. The following is this gateway’s public contract. |
| Retrieve a Kling images task · AI | GET /kling/v1/images/{kind}/{task_id} · json | Inference API key | Retrieve a Kling images task. The following is this gateway’s public contract. |
| Retrieve a Kling videos task · AI | GET /kling/v1/videos/{kind}/{task_id} · json | Inference API key | Retrieve a Kling videos task. The following is this gateway’s public contract. |
| Retrieve a Midjourney task · AI | GET /mj/task/{task_id}/fetch · json | Inference API key | Retrieve a Midjourney task. The following is this gateway’s public contract. |
| Retrieve a native FLUX image task · AI | GET /flux/v1/get_result · json | Inference API key | Retrieve a native FLUX image task. The following is this gateway’s public contract. |
| Retrieve a unified video or image task · AI | GET /v1/videos/{task_id} · json | Inference API key | Retrieve a unified video or image task. The following is this gateway’s public contract. |
| Retrieve image results by request ID · AI | GET /v1/images/generations/result · json | Inference API key | Retrieve image results by request ID. The following is this gateway’s public contract. |
Music tasks (2)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Retrieve Suno v2 tasks in a batch · AI | POST /suno/v2/fetch · json | Inference API key | Retrieve Suno v2 tasks in a batch. The following is this gateway’s public contract. |
| Retrieve a Suno v2 task · AI | GET /suno/v2/fetch/{task_id} · json | Inference API key | Retrieve a Suno v2 task. The following is this gateway’s public contract. |
Other tasks and results (2)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| List current account task records · AI | GET /api/task/self · json | System token + user ID, or session | List current account task records within the current credential scope. |
| Retrieve a Kling audio task · AI | GET /kling/v1/audio/{kind}/{task_id} · json | Inference API key | Retrieve a Kling audio task. The following is this gateway’s public contract. |
Account (8)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Bootstrap account identity · AI | GET /api/user/self/bootstrap · json | Account system token only | Call this first when you have a system token but do not know the account ID. |
| Get current account · AI | GET /api/user/self · json | System token + user ID, or session | Get current account. Fields and permissions follow this gateway implementation. |
| List account groups and multipliers · AI | GET /api/user/self/groups · json | System token + user ID, or session | List account groups and multipliers within the current credential scope. |
| List account model choices · AI | GET /api/user/models · json | System token + user ID, or session | List account model choices within the current credential scope. |
| Patch the current profile · AI | PATCH /api/user/self · json | System token + user ID, or session | Patch the current profile. The following is this gateway’s public contract. |
| Read current system token · AI | GET /api/user/token/current · json | System token + user ID, or session | Read current system token. Returns data visible to the current account. |
| Retrieve account level limits · AI | GET /api/user/self/level_limits · json | System token + user ID, or session | Retrieve account level limits within the current credential scope. |
| Rotate system token · AI | GET /api/user/token · json | System token + user ID, or session | Rotate system token. Returns data visible to the current account. |
API keys (14)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Create API keys in a batch · AI | POST /api/token/batch/create · json | System token + user ID, or session | Create an API key. Fields and permissions follow this gateway implementation. |
| Create an API key · AI | POST /api/token/ · json | System token + user ID, or session | Create an API key. Fields and permissions follow this gateway implementation. |
| Delete API keys in a batch · AI | POST /api/token/batch · json | System token + user ID, or session | Delete API keys in a batch within the current credential scope. |
| Delete an API key · AI | DELETE /api/token/{id} · json | System token + user ID, or session | Delete an API key. Fields and permissions follow this gateway implementation. |
| Get API key details · AI | GET /api/token/{id} · json | System token + user ID, or session | Get API key details. Fields and permissions follow this gateway implementation. |
| Get current key usage · AI | GET /api/usage/token/ · json | Inference API key | Get current key usage. Fields and permissions follow this gateway implementation. |
| List API keys · AI | GET /api/token/ · json | System token + user ID, or session | List API keys. Fields and permissions follow this gateway implementation. |
| List assignable API key groups · AI | GET /api/token/group · json | System token + user ID, or session | List assignable API key groups. The following is this gateway’s public contract. |
| Patch an API key · AI | PATCH /api/token/{id} · json | System token + user ID, or session | Only explicitly supplied fields are updated. Omitted fields stay unchanged; 0 and false are preserved. |
| Reveal API keys in a batch · AI | POST /api/token/batch/keys · json | System token + user ID, or session | Reveal API keys in a batch within the current credential scope. |
| Reveal an API key · AI | POST /api/token/{id}/key · json | System token + user ID, or session | Reveal an API key. Fields and permissions follow this gateway implementation. |
| Search API keys · AI | GET /api/token/search · json | System token + user ID, or session | List API keys. Fields and permissions follow this gateway implementation. |
| Update API keys in a batch · AI | POST /api/token/batch/update · json | System token + user ID, or session | Update API keys in a batch within the current credential scope. |
| Update an API key · AI | PUT /api/token/ · json | System token + user ID, or session | Update an API key. Fields and permissions follow this gateway implementation. |
Usage and logs (19)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Compatible cumulative usage · AI | GET /v1/dashboard/billing/usage · json | Inference API key | Compatible cumulative usage. Read-only compatibility for legacy clients. |
| Compatible quota information · AI | GET /v1/dashboard/billing/subscription · json | Inference API key | Compatible quota information. Read-only compatibility for legacy clients. |
| Export account task records as CSV · AI | GET /api/task/self/export · json | System token + user ID, or session | Export account task records as CSV. Returns data visible to the current account. |
| Export account usage CSV · AI | GET /api/log/self/export · json | System token + user ID, or session | Export account usage CSV within the current credential scope. |
| Export current key usage CSV · AI | GET /api/log/token/export · json | Inference API key | Export current key usage CSV within the current credential scope. |
| Get account dashboard consumption statistics · AI | GET /api/data/dashboard_consumption_stats · json | System token + user ID, or session | Get account dashboard consumption statistics. Returns data visible to the current account. |
| Get account logs by request ID · AI | GET /api/log/self/request/{request_id} · json | System token + user ID, or session | Get account logs by request ID. Returns data visible to the current account. |
| Get account quota history · AI | GET /api/data/self · json | System token + user ID, or session | Get account quota history. Returns data visible to the current account. |
| Get consumption statistics by source · AI | GET /api/data/consumption_stats · json | System token + user ID, or session | Get consumption statistics by source. Returns data visible to the current account. |
| Get detailed account usage statistics · AI | GET /api/log/self/advanced_stat · json | System token + user ID, or session | Get detailed account usage statistics. Returns data visible to the current account. |
| Get usage statistics · AI | GET /api/log/self/stat · json | System token + user ID, or session | Get usage statistics. Fields and permissions follow this gateway implementation. |
| Get usage summary · AI | GET /api/log/self/stat · json | System token + user ID, or session | Aggregate the current account’s recorded requests, errors, tokens and quota. |
| Legacy log search (deprecated) · AI | GET /api/log/self/search · json | System token + user ID, or session | Deprecated endpoint; do not use for new integrations. |
| List account Midjourney task records · AI | GET /api/mj/self · json | System token + user ID, or session | List account Midjourney task records. Returns data visible to the current account. |
| List account monthly log archives · AI | GET /api/log/self/archive · json | System token + user ID, or session | List account monthly log archives. Returns data visible to the current account. |
| List usage logs · AI | GET /api/log/self · json | System token + user ID, or session | List usage logs. Fields and permissions follow this gateway implementation. |
| Manually refresh a not-started task · AI | POST /api/task/{task_id}/poll · json | System token + user ID, or session | Manually refresh a not-started task. Returns data visible to the current account. |
| Retrieve request image or task results · AI | GET /api/log/get-request · json | Inference API key | Retrieve image results by request ID. The following is this gateway’s public contract. |
| Retrieve usage logs for the current API key · AI | GET /api/log/token · json | Inference API key | List usage logs. Fields and permissions follow this gateway implementation. |
Pricing and top-ups (2)
| Endpoint and docs | Method, path, transport | Authentication | Purpose |
|---|---|---|---|
| Get model pricing · AI | GET /api/pricing · json | Anonymous; may vary when authenticated | Get model pricing. Fields and permissions follow this gateway implementation. |
| List top-up records · AI | GET /api/user/topup/self · json | System token + user ID, or session | List top-up records. Fields and permissions follow this gateway implementation. |
Models, pricing, and errors
- Model marketplace: check model IDs, endpoints, and displayed prices; authenticated queries determine account access.
- Getting started, protocol and endpoint selection, troubleshooting.
- Check HTTP status and protocol-specific business status. Back off on 429; do not blindly retry paid generation, task creation, or key mutations.
- This index only covers published integration references. It does not expose internal admin routes, real credentials, account data, or user requests.
- AI reading links require network access and permission to view this site. External assistants usually cannot reach private test addresses; copy the overview and the relevant endpoint guide instead.
Content revision: ec691266958f26bb509b85546c18c99f8876ec057fed4685ed83a734b5a847f6
Use cases
- Choose endpoints for a task
- AI-assisted integration
API protocols
/docs/api/overview.md
FAQ
What should I give an AI?
Copy the overview text or give its AI reading link to an assistant with browsing access, then read the relevant endpoint references for integration.
Does documentation guarantee availability?
No. Availability depends on configured channels, models, account permissions, and balance. Check live lists and endpoint requirements.
What if the AI cannot open a link?
Copy the overview, then copy the integration guide from the chosen endpoint page. Do not share real credentials with the assistant.
Related guides
Official sources
- new-api · QuantumNous Official
兔子API