Claude api code: quickstart guide
Drop your Claude API code integration into any OpenAI-compatible client with a single base URL change. This uncensored LLM proxy routes your requests to a dedicated model optimized for unrestricted code generation and high-volume usage.
Base URL and Authentication
Start by updating your client configuration to point to our hosted endpoint. Use the base_url HTTPS://api.claudeapicode.com/v1 and pass your key in the Authorization header. This proxy works with standard OpenAI SDKs, requiring no custom drivers. You can generate a key instantly via Google or email on the dashboard, with no phone number required.
curl https://api.claudeapicode.com/v1/chat/completions \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [{"role": "user", "content": "Set up a PostgreSQL connection pool with ten connections"}]
}'
Chat Completions Endpoint
Send requests to the /v1/chat/completions endpoint using the model ID uncensored. This endpoint accepts standard chat messages and returns text responses. It handles all token processing for your code sessions without the restrictions of the official platform. You can verify your available models by hitting /v1/models to confirm connectivity.
from openai import OpenAI
client = OpenAI(base_url="https://api.claudeapicode.com/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)Node.js
import OpenAI from "openai";
const client = new OpenAI({ baseURL: "https://api.claudeapicode.com/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);Streaming
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)Get your key in seconds
Sign up, copy the key, update the base URL. Setup complete.