Documentation
Guides and documentation
Documentation
Guides and documentation
Developer documentationGuides
Developer documentation
From your first API request to client integration, find model, interface, and call troubleshooting guides.
quick start
Create a key, query the model, and complete your first conversation request.
Create and protect API Keys
Isolate application credentials, set permissions and quotas, and promptly deactivate them if they are leaked.
Select access protocol
Differentiate between Chat, Responses, Anthropic Messages and Gemini native formats.
Select models by scene
Compare based on task quality, latency, context, tool capabilities, and cost.
API address and interface overview
Confirm the request URL, method, authentication header and various interface boundaries.
Chat Completions
Send multiple rounds of conversations and parse replies, end reasons and usage.
Responses access
Use input and output items to correctly differentiate text, tools, and background tasks.
Anthropic Messages access
Use the website address to call the compatible Messages interface.
Gemini native protocol access
Use contents and parts to invoke native text and multimodal generation.
Streaming output and interrupt handling
Correctly parse SSE, delta content, completion events, and connection interruptions.
Tool call
The call is made from the model to the server for verification and execution, and then the tool results are returned.
Structured output
Schema validation and truncation still need to be performed after requesting JSON.
multimodal input
Send pictures, audio or other media per model agreement.
image generation
Select a compatible endpoint, submit the prompt, and save the returned image.
image editing
Complete editing with reference images and prompt words to distinguish multipart and JSON requests.
Image and video parameters
Confirm the size, duration, frame, reference materials and cost dimensions.
Video generation task
Create an asynchronous task, save the task ID, poll and get the results.
Video polling, downloading and recovery
Avoid repeated creation of charging tasks and restore long-term generation based on status.
Speech recognition, translation and synthesis
Complete speech-to-text and text-to-speech using the audio interface.
Vectors and reordering
Generate vectors for retrieval systems and rank candidate documents for relevance.
Usage, fees and current limits
Understand usage units, reconcile call records, and control request budgets.
Grouping, source and actual deduction
Distinguish between public bid price, account permissions, channel source and actual request fee.
Points, invitations and recharge rules
Confirm available rewards, redemption and top-up conditions on your account page.
Key strategy and failover
Understand gateway routing and retry boundaries.
Prompt caching and usage verification
Understand the differences between cached reads, cached writes, and models.
Data, logs and results retention
Clearly identify the data recipients on the call chain and control sensitive information.
Team and enterprise access
Isolate calls by project and check authority, budget and business scope.
Request tracking, timeouts and retries
Save the request ID to avoid repeated generation due to network errors.
Error codes and troubleshooting
Locate call failures by HTTP status, error text, and request ID.
Network, proxy and connection troubleshooting
Differentiate between native, container, remote application and upstream asset access issues.
FAQ
Answer questions about access addresses, models, subscription rights, and failed deductions.
Contact support and submit feedback
Prepare diagnostic information that is localizable, reproducible, and non-secret.
Client and tool integration
Fill in the address, credentials, protocol and model uniformly, and select the access method according to the tool.
Python and Node.js SDK
Provide the key with environment variables and call the OpenAI compatible interface on the server.
Migrate existing OpenAI compatible applications
Replace addresses, credentials, and models in stages, and switch production after verifying compatibility.
Codex CLI and desktop
Configure Responses address for codex that supports custom providers.
Claude Code access
Set the gateway address, site key, and available Claude models.
Gemini CLI access
Connect to the Gemini native interface of this site through API Key mode.
CC-Switch access
Configure the local address, independent key and available models in CC-Switch.
OpenCode access
Configure the site address, independent keys and available models in OpenCode.
Cline access
Configure the site address, independent keys and available models in Cline.
Cursor access
Configure the site address, independent keys and available models in Cursor.
Claude Desktop access
Configure the site address, independent keys and available models in Claude Desktop.
VS Code and GitHub Copilot connection
Configure the site address, independent keys, and available models in VS Code and GitHub Copilot.
DeepSeek Harness Access
Configure the site address, independent keys and available models in DeepSeek Harness.
Hermes Agent Access
Configure the site address, independent key and available models in Hermes Agent.
Neovate Code Access
Configure the site address, independent keys and available models in Neovate Code.
Pi Coding Agent access
Configure the local address, independent key and available models in Pi Coding Agent.
Grok Build access
Configure the site address, independent keys and available models in Grok Build.
Cherry Studio access
Configure the site address, independent keys and available models in Cherry Studio.
Dify access
Configure the site address, independent keys and available models in Dify.
Obsidian Copilot access
Configure the site address, independent keys and available models in Obsidian Copilot.
Open WebUI access
Configure the site address, independent keys and available models in Open WebUI.
RikkaHub access
Configure the site address, independent keys and available models in RikkaHub.
Sider access
Configure the site address, independent key and available models in Sider.
OpenClaw access
Configure the site address, independent keys and available models in OpenClaw.
Alibaba Cloud deploys OpenClaw access
Configure the website address, independent key and available models in Alibaba Cloud Deployment OpenClaw.
The boundary between API Key and OAuth
Differentiate between website login, model call credentials, and third-party OAuth integration.
Agent generates pictures and videos
Let the agent choose the interface, limit the cost, submit the task and save the results.
Applicable boundaries of Seedance material management
Distinguish between normal asset URLs, vendor resource IDs, and third-party gateway asset APIs.