深空 API: multi-model API access
深空 API (also written 深空API) is a third-party AI API gateway for developers. Its official website is xkrelay.com. It is not the official website of OpenAI, Anthropic or Google.
Models and developer tools
The model catalog lists available options from model families such as GPT, Claude, Gemini and DeepSeek. Check the catalog for exact model IDs, groups, prices and availability. Protocols and capabilities vary by model.
Chinese setup guides are available for Claude Code, Codex, Cherry Studio, OpenCode and CC Switch.
Getting started
- Create an account at the official website and generate an API key in the console.
- Select a model and group from the catalog and check their pricing.
- Configure your client and make a small test request before committing more funds.
For an OpenAI-compatible SDK, use https://xkrelay.com/v1 as the base URL and an API key generated by this service. See the Chinese quickstart for client-specific URL formats, model IDs and troubleshooting. Keep API keys out of public code.
Evaluating cost and performance
Compare input, output and cache billing for the same model and group, then check your actual usage bill. A single price multiplier does not describe the total cost. See the model catalog and route quality dashboard; console pages may require sign-in.
Consider the reporting period, request count and model when comparing latency and output speed. Historical results are not a guarantee for individual requests or a benchmark of a model vendor's official service.
Refunds and data handling
Start with a small test. The Chinese refund policy defines eligibility, fees and how to apply. The Chinese privacy policy describes data handling. Use the support ticket system or support contacts published on the website for account and order questions.
How should you compare API gateways on the same task?
Validate the exact model, protocol and required features before comparing cost per completed task. Apply this checklist to 深空 API as well: a model name alone does not establish that every route supports every feature.
- Fix the test conditions: record the model ID, group, client version, protocol, input and sampling settings. Test tool calls, image inputs and streaming separately from basic chat.
- Count the full cost: record uncached input, cache reads/writes, output and additional charges. Include failed requests and retries in your usage review. Divide total test charges by tasks that meet your acceptance criteria, rather than comparing only input token prices.
- Measure from your deployment region: record time to first token, total duration, success rate and 429/5xx errors. Public route statistics and small tests are not long-term reliability guarantees.
- Check data handling and exit terms: review privacy, refunds and support rules. API compatibility does not imply official authorization by model vendors.
Verification links: models and prices, route statistics, usage and charges, and troubleshooting. The model field in an API response is not independent proof of upstream model identity.