Skip to main content
This guide takes you from a fresh account to your first response from the Deepshi API.

Prerequisites

  • A Deepshi account with credits.
  • An API key (you’ll create one below).
  • curl, or Python / Node.js if you prefer an SDK.

1. Create an API key

  1. Sign in at deepshi.ai.
  2. Open the API keys section of your dashboard.
  3. Click Create key, give it a name, and copy the value.
Your key is shown only once, so store it somewhere safe. See Authentication for details.
Treat your key like a password. Anyone with it can spend your credits. Never commit it to source control or expose it in client-side code.

2. Make your first call

The API is OpenAI-compatible. The base URL is https://api.deepshi.ai/v1 and you authenticate with a bearer token.
You’ll get back a standard OpenAI chat completion object:
The usage.cost.total_cost field is the exact USD amount this request deducted from your balance. See Credits & billing.

3. Pick a model

Swap the model field to call any model in the catalog: Deepshi’s own models for highly uncensored responses, or a frontier model from a provider like OpenAI or Anthropic. The catalog covers text, image, video, and music models. See Models for the full list, and fetch the live catalog any time:

Next steps

Stream responses

Render tokens as they’re generated.

Call tools

Let the model call your functions.

Reasoning

Use models that think before they answer.

Generate images

Create images from a text prompt.

Handle errors

Understand status codes and retries.