EN ▾
Get API key

Prompts and scripts over one endpoint

Integrate the uncensored text model into your pipeline using standard OpenAI SDKs. This guide covers authentication, request formats, streaming, and rate limits for the voxtral api.

Base URL and Headers

Start by setting your base URL to https://api.voxtral.top/v1. This endpoint is fully compatible with the official OpenAI client libraries, so you can reuse existing code by simply updating the base URL and API key. Authentication relies on a Bearer token passed in the Authorization header. You generate this key on the Get API key page using your Google account or email. Keep this key secure, as it provides direct access to your prepaid credit.

Sending a Request

Send text completions using the standard chat completions endpoint. The model ID is always uncensored. You can specify parameters like temperature for creativity or max_tokens to control output length. The API accepts standard message formats with role and content fields. This setup allows you to integrate the text engine directly into your existing workflows without learning a new protocol.

curl https://api.voxtral.top/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Write a blunt product review of a cheap VPN."}]
  }'

Python SDK Integration

Use the official OpenAI Python library to interact with the API. Configure the client with your API key and the custom base URL. This approach simplifies request handling and response parsing. You can easily loop through results or handle errors using standard Python exception handling. The SDK manages the underlying HTTP requests, allowing you to focus on the prompt logic and data processing within your pipeline.

from openai import OpenAI

client = OpenAI(base_url="https://api.voxtral.top/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 SDK Integration

For JavaScript or TypeScript projects, use the OpenAI Node.js package. Initialize the client with your credentials and the voxtral base URL. This method works seamlessly with modern async/await patterns. You can send prompts and receive responses just like you would with any OpenAI-compatible service. This makes it easy to add uncensored text generation to your web apps or backend services.

import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://api.voxtral.top/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);

Handling Streaming Responses

Enable streaming by setting stream: true in your request. The API returns data in real-time as chunks, allowing you to display output progressively. Each chunk contains partial text and usage statistics in the final piece. This is ideal for user-facing applications where latency matters. You can parse the stream to update the UI immediately as the model generates tokens.

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)

Limits, Errors, and Context

Your API key is limited to 300 requests per minute and 8 concurrent connections. If you exceed these limits, you will receive a 429 error. Authentication failures return a 401, and insufficient funds trigger a 402. The context window is 100,000 tokens total, with no separate output cap. Errors and refusals do not consume your credit, ensuring you only pay for actual usage.

Technical specifications

A quick checklist for developers: format, limits, features, billing.

SpecValue
CompatibilityOpenAI-compatible: any OpenAI SDK or client works — change the base URL and the key
MethodsPOST /v1/chat/completions · GET /v1/models
AuthenticationAuthorization: Bearer YOUR_KEY
Model IDuncensored
Base URLhttps://api.voxtral.top/v1
Sampling parameterstemperature, top_p, stop, seed and the two penalties are passed through
Context window100,000 tokens (prompt + completion together)
JSON modeJSON object mode via response_format json_object
Max outputprompt + completion fit within 100,000 tokens; max_tokens optional, no separate output cap
Function callingSupported: tools + tool_choice, tool_calls in the reply (streamed too), tool results as role: tool messages
StreamingYes — server-sent events; the last chunk carries token usage
Max bodyup to 8 MB per request
Concurrency8 requests at the same time per key
HeadersX-Request-Id, X-Balance-USD, X-RateLimit-Limit-Requests, X-RateLimit-Limit-Concurrency
Requests per minute300 requests per minute per key
Free trial$0.50 for 7 days, no card · Trial key: 2 parallel requests, 60 req/min; full limits (8 and 300) after first top-up
Token pricesinput $0.15 / 1M tokens, output $0.50 / 1M tokens
PaymentUSDT (TRC20) or USDC (Base), any whole amount from $20 to $500
Credit expiryno monthly fee; paid credit does not expire
Volume bonus+5% on $50+, +10% on $100+, +15% on $200+
Billingprepaid credit, charged by real token usage; errors and refusals are free
Key managementone key per account, regenerate any time (the old one stops working)
AccountGoogle or e-mail and password
Content policyuncensored for adults; the only hard rule: no sexual content involving minors

When a request fails

Every error is JSON with a type you can switch on. You are never charged for an error.

HTTPTypeWhat to do
400bad_requestmalformed request or too long for the context window
401missing_key · invalid_key · key_revokedcheck the Authorization header or use your current key
402no_creditout of credit; add credit and retry
403content_blockedsexual content involving minors — refused, not billed
404not_foundunknown endpoint
413request_too_largebody over 8 MB
429rate_limited · concurrencyslow down: rate or parallel limit reached
503upstream_busytemporary overload, retry shortly

Questions and answers

Does the API support embeddings or image generation?

No, the voxtral api provides only text chat-completions. It does not support embeddings, image, audio, or video generation endpoints. You must use separate services for multimodal inputs or outputs.

How are errors handled regarding billing?

Errors such as rate limits, authentication failures, or content refusals do not consume your prepaid credit. You are only charged for tokens that are successfully processed and returned in the response.

Can I use the same API key for multiple projects?

Yes, you can use a single API key across multiple applications or servers. However, each account is limited to one active key at a time; generating a new key will revoke the previous one.

Your key is one form away

Create an account, copy the key, change the base URL. That is the whole setup.

Get API key