Base URL
Authentication
All requests require a bearer token:Endpoints
| Method & path | Description |
|---|---|
GET /v1/models | List the models your key can use |
POST /v1/chat/completions | Generate a chat completion (streaming, tools, JSON, reasoning) |
Conventions
- Format: JSON request and response bodies, matching the OpenAI schema.
- Streaming: Set
"stream": truefor Server-Sent Events; add"stream_options": {"include_usage": true}for a final usage chunk. See Streaming. - Usage & cost: Every successful response includes a
usageobject. Deepshi addsusage.cost.total_cost, the USD cost of the request, drawn from your balance. - Errors: Standard HTTP status codes with a JSON
errorobject. See Errors.
The Endpoints pages are generated from the Deepshi OpenAPI specification.
Each page lets you inspect the full request and response schema and send a test
request from the browser.