uk ▾
Create key

Uncensored OpenAI-compatible API

dolphinmodelai.com

https://api.dolphinmodelai.com/v1

Dolphin model ai API Quickstart Guide

This guide walks you through integrating our uncensored LLM API with standard OpenAI SDK clients. You will learn to configure the base URL, send requests, and handle streaming responses for your application.

Prerequisites: Installing the OpenAI SDK

Install the official OpenAI client library for your preferred programming language. This library handles authentication and request formatting automatically.

  • Python: pip install openai
  • Node.js: npm install openai

Ensure you are using a recent version of the SDK to support streaming and function calling features. Our API follows the standard OpenAI protocol closely.

Configuration: Setting your base_url and API key

Configure your client to point to our API endpoint instead of the default OpenAI servers. Use the API key generated from your dashboard.

  • Base URL: https://api.dolphinmodelai.com/v1
  • Model ID: uncensored

This configuration ensures all requests route to our uncensored model. The client will authenticate using your unique key for each request.

Basic Request: Sending a prompt to the uncensored model

Send a simple text prompt to receive a direct response from the model. The model answers without standard content refusals for lawful adult topics.

Here is a basic cURL example:

curl https://api.dolphinmodelai.com/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "uncensored",
    "messages": [{"role": "user", "content": "Run unit tests for the payment module"}]
  }'

Replace <YOUR_API_KEY> with your actual key. The response contains the generated text in the choices array.

Streaming: Handling SSE responses for real-time output

Enable streaming to receive tokens as they are generated. This reduces perceived latency for long responses.

Use the Python SDK for efficient streaming:

from openai import OpenAI

client = OpenAI(base_url="https://api.dolphinmodelai.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)

Each chunk contains partial text. The final chunk includes token usage statistics. This approach is ideal for chat interfaces.

Advanced Features: Function calling and JSON mode

Request structured data or tool definitions using standard parameters. Set response_format to {"type": "json_object"} for strict JSON output.

Use the Node SDK for tool integration:

import OpenAI from "openai";

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

The model supports tool_choice and tools parameters. This allows integration with external functions and APIs.

Rate Limits and Quotas: Managing 300 RPM and 8 concurrency

Monitor your request volume to avoid interruptions. The API enforces a limit of 300 requests per minute per key.

You can have 8 concurrent requests at any time. The request body must stay under 8 MB. If you exceed these limits, you will receive a 429 status code.

Use 401 errors to check key validity. Use 402 errors to check credit balance. Errors and refusals do not consume tokens.

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)

Common questions

Is dolphin model AI the same as the official OpenAI API?

No, it is an independent service that uses the same OpenAI-compatible protocol. You can use the official OpenAI SDKs but must point them to our base URL. The model is uncensored and not a copy of GPT.

How do I top up my credit?

Tops are accepted via crypto only: USDT (TRC20) or USDC (Base). Minimum top-up is $20, and maximum is $500. Credit never expires.

What is the context window size?

The context window is 100,000 tokens for both prompt and completion combined. The maximum output per request is 16,000 tokens unless you specify a lower <code>max_tokens</code> value.

Get your API key

Sign up, copy the key, update your base URL. Done.

Create key