arrow_back Back to Dashboard

Brevy API v1

A REST API for programmatic AI access — compatible with any OpenAI-compatible client.

Getting Started

The Brevy API uses an OpenAI-compatible interface. You can use any OpenAI-compatible SDK, library, or tool by pointing it to our API base URL and using your Brevy API key.

1. Create an API Key

Go to your DashboardAPI IntegrationsCreate API Key. Your key will look like brevy-v1-xxxx....

2. Set your API Base URL

https://brevy.brevios.com/v1

3. Make your first request

curl
curl https://brevy.brevios.com/v1/chat/completions \
  -H "Authorization: Bearer brevy-v1-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "nemotron-3-ultra-free",
    "messages": [
      {"role": "user", "content": "Write a Python function to reverse a string"}
    ],
    "temperature": 0.7
  }'

Authentication

Every request must include your API key in the Authorization header:

Authorization: Brevy-v1-your-api-key

API keys are scoped to your account and respect your plan's rate limits. You can create up to 10 API keys from the dashboard.

⚠️ Keep your API key secret. Never commit it to version control or expose it in client-side code. If compromised, revoke it immediately from the dashboard and create a new one.

Base URL

GET https://brevy.brevios.com/v1

All API endpoints are relative to this base URL.

Endpoints

POST /v1/chat/completions

Create a chat completion. Send messages and get AI-generated responses.

ParameterTypeRequiredDescription
modelstringYesModel ID (see available models)
messagesarrayYesArray of message objects with role and content
temperaturenumberNoSampling temperature (0-2). Default: 1
top_pnumberNoNucleus sampling (0-1). Default: 1
streambooleanNoEnable streaming responses. Default: false
thinkingbooleanNoEnable extended thinking (for supported models)
GET /v1/models

List all available models.

Available Models

Models are selected based on your plan. Access the model list via the GET /v1/models endpoint or check the dashboard.

Model IDNameType
nemotron-3-ultra-freeNemotron 3 Ultra FreeFree
mimo-v2.5-freeMiMo-V2.5 FreeFree
deepseek-v4-flash-freeDeepSeek V4 Flash FreeFree

Lite and Pro plans unlock additional models. See the dashboard for your full model list.

Rate Limits

API rate limits depend on your plan. Limits reset every minute (RPM / TPM) and every day (RPD).

PlanRequests/MinRequests/DayTokens/Min
Free101,000100,000
Lite255,000300,000
Pro5010,000700,000

Rate limit headers are returned with every response:

X-RateLimit-Limit: 50
X-RateLimit-Remaining: 48
X-RateLimit-Reset: 60

Streaming

Enable streaming by setting "stream": true in your request. The response will be delivered as Server-Sent Events (SSE).

Python
import openai

client = openai.OpenAI(
    api_key="brevy-v1-your-api-key",
    base_url="https://brevy.brevios.com/v1"
)

stream = client.chat.completions.create(
    model="nemotron-3-ultra-free",
    messages=[{"role": "user", "content": "Hello!"}],
    stream=True
)

for chunk in stream:
    if chunk.choices[0].delta.content:
        print(chunk.choices[0].delta.content, end="")

Error Handling

StatusCodeDescription
400bad_requestInvalid request parameters
401unauthorizedInvalid or missing API key
402insufficient_creditsNot enough credits. Buy more credits.
403model_not_allowedModel not available on your plan
429rate_limit_exceededToo many requests. Check X-RateLimit-Reset header.
500server_errorInternal server error. Retry after a moment.

SDKs & Libraries

Use any OpenAI-compatible SDK. Just change the base URL and API key.

Python
client = openai.OpenAI(
    api_key="brevy-v1-your-key",
    base_url="https://brevy.brevios.com/v1"
)
Node.js
import OpenAI from 'openai';

const client = new OpenAI({
    apiKey: 'brevy-v1-your-key',
    baseURL: 'https://brevy.brevios.com/v1'
});
Go
client := openai.NewClient(
    "brevy-v1-your-key",
    "https://brevy.brevios.com/v1",
)

Support

Need help? Contact us at hello@brevios.com.