Deep api Documentation: Quickstart
Get started with the deep API in minutes. This quickstart guide covers authentication, your first request, and streaming responses.
Base URL and Authentication
The base URL for all requests is https://api.deepapi.cc/v1. Use the official OpenAI SDKs or any OpenAI-compatible client by changing the base_url and providing your API key. Authentication requires passing your key in the Authorization header as a Bearer token. You can generate a key instantly via Google or email on the Get API key page.
First Request with cURL
Send your first completion using POST /v1/chat/completions. The model ID is uncensored. You can test connectivity with a simple message. This confirms your key works and credits are deducted correctly.
curl https://api.deepapi.cc/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "List all available endpoints and their current status"}]
}'
Input tokens cost $0.15 per 1M and output tokens cost $0.50 per 1M. Errors and refusals are free. The context window supports 100,000 tokens for prompt and completion combined.
Python SDK Quickstart
Install the official openai package. Set the base URL to https://api.deepapi.cc/v1. Initialize the client with your API key. Call chat.completions.create with the model uncensored. This approach works for most standard integrations without extra code.
from openai import OpenAI
client = OpenAI(base_url="https://api.deepapi.cc/v1", api_key="YOUR_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Summarise this thread without softening it."}],
)
print(resp.choices[0].message.content)
The model is open-weight and tuned for lawful adult content. It is not GPT, Claude, or DeepSeek. You can stream responses or request JSON mode directly.
Node SDK Integration
Use the openai npm package. Configure the baseURL to point to https://api.deepapi.cc/v1. Pass your key in the apiKey field. Create a completion with the uncensored model. This method is ideal for server-side applications.
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.deepapi.cc/v1", apiKey: process.env.API_KEY });
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Draft a villain monologue for my game." }],
});
console.log(resp.choices[0].message.content);
You can set parameters like temperature and top_p. Function calling is supported via tools. JSON mode is available with response_format: {type: "json_object"}.
Streaming Responses via SSE
Enable streaming by setting stream: true. The API returns Server-Sent Events (SSE). Token usage information is included in the last chunk. This allows real-time display of generated text to users.
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Tell the story in second person."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="", flush=True)
Streaming does not affect token pricing. You still pay for the total input and output tokens consumed. The max output per request is up to the full 100,000-token window. If max_tokens is unset, the response can run to the end of the window.
Rate Limits and Errors
The limit is 300 requests per minute per key. Concurrency is capped at 8 simultaneous requests per key. The request body must be under 8 MB. A 401 error indicates an invalid key. A 402 error means you have no credit. A 429 error signals rate limiting. Top up with USDT (TRC20) or USDC (Base) to continue.
FAQs
What is the deep API base URL and model ID?
The base URL is HTTPS://api.deepapi.cc/v1. The model ID to use is uncensored. It is an open-weight model run on our servers, not a resold GPT or Claude model.
How do I pay and what are the limits?
Pay with crypto: USDT (TRC20) or USDC (Base). Top-ups range from $20 to $500. You get 300 requests per minute and 8 concurrent requests per key. Credit never expires.
Does the uncensored model allow NSFW content?
Yes, the model does not refuse lawful adult, fictional, or controversial topics. It only blocks sexual content involving minors. Prompts are not used for training.
Get your API key instantly
Sign up, copy your key, update your base URL. That is all.