Updated
Seedance API Documentation: Endpoints and Parameters
This is a practical reference for the seedance api documentation of the text API on seedanceapis.com: one base URL, two endpoints, one model, and the usual OpenAI request shape. If you already use an OpenAI SDK, you only change the base URL and the key.

Quick reference
| Item | Value |
|---|---|
| Base URL | https://api.seedanceapis.com/v1 |
| Model ID | uncensored |
| Auth header | Authorization: Bearer YOUR_API_KEY |
| Methods | POST /v1/chat/completions, GET /v1/models |
| Context window | 100,000 tokens, prompt plus completion |
| Max request body | 8 MB |
| Output | Text only |
A note on scope. Seedance is better known as a video model, but this service is a text API for the writing around video work: prompts, scripts, shot lists, captions. It does not render video, images or audio, and it offers no embeddings or fine-tuning. The model is one open-weight model run by an independent provider, tuned to answer without content refusals for lawful adult use. It is not the official API of any model vendor. The shorter walkthrough is on the docs page; this article adds parameters and troubleshooting.
Authentication and your first call
Create an account with Google or with email and password, then open the API key page. New users can claim $0.50 of trial credit there with one click, valid for 7 days, no card needed. Send the key as a Bearer token on every request.
curl https://api.seedanceapis.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"messages": [
{"role": "system", "content": "You are a scriptwriting assistant."},
{"role": "user", "content": "Give me three opening lines for a 30-second ad."}
]
}'
The same call with the official OpenAI Python SDK:
from openai import OpenAI
client = OpenAI(base_url="https://api.seedanceapis.com/v1", api_key="YOUR_API_KEY")
resp = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Give me three opening lines for a 30-second ad."}],
)
print(resp.choices[0].message.content)
And with Node:
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.seedanceapis.com/v1",
apiKey: process.env.API_KEY,
});
const resp = await client.chat.completions.create({
model: "uncensored",
messages: [{ role: "user", content: "Give me three opening lines for a 30-second ad." }],
});
console.log(resp.choices[0].message.content);
Listing models
GET /v1/models returns the model list in the standard OpenAI format. Clients that auto-detect models call it on startup, which is why it exists. You will see the single ID uncensored. Use that value in the model field of every chat request.
curl https://api.seedanceapis.com/v1/models \
-H "Authorization: Bearer YOUR_API_KEY"
# expected id in the response: uncensored
If a first request fails, check the spelling of the model ID before anything else.
Request parameters
POST /v1/chat/completions accepts the standard chat body. The fields you will touch most:
model: alwaysuncensored.messages: an array of objects withrole(system,user,assistant,tool) andcontent.max_tokens: optional. If you omit it, the completion can use the rest of the 100,000-token window.temperature,top_p,stop,seed, and the frequency and presence penalties: passed through to the model.stream: set totruefor server-sent events.toolsandtool_choice: function calling.response_format:{"type": "json_object"}for JSON mode.
For prompt-writing, a temperature around 0.7 to 1.0 gives varied drafts, while 0.2 to 0.4 suits tagging and formatting. Setting seed helps when you want to compare two system messages on otherwise identical conditions.
Two practical notes on parameters. Sampling values are passed through unchanged, so what you know about temperature and top_p from other OpenAI-style APIs applies directly. And because max_tokens is optional, a missing value does not cap the reply at a small default: the completion may use everything left in the window after your prompt. If you run batch jobs where an overlong answer would waste money at $0.50 per 1M output tokens, set a ceiling that fits the job, such as 400 for a caption or 1,500 for a full script page.
Streaming, tools and JSON mode
Streaming
With stream: true the reply arrives as SSE chunks, and usage is reported at the end. Remember that a streamed request holds its concurrency slot until the stream ends, so do not leave connections open.
from openai import OpenAI
client = OpenAI(base_url="https://api.seedanceapis.com/v1", api_key="YOUR_API_KEY")
stream = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": "Write a short voice-over about a harbor at dawn."}],
stream=True,
)
for chunk in stream:
if chunk.choices and chunk.choices[0].delta.content:
print(chunk.choices[0].delta.content, end="")
Tool calling
Pass function definitions in tools, optionally force a choice with tool_choice, and return results as messages with role: "tool". Streamed responses include tool_calls in the deltas. A typical use is letting the model call your own function that looks up a character sheet or a scene number before it writes.
JSON mode
Set response_format to {"type": "json_object"} and say in the prompt that you want JSON. This suits shot lists you plan to parse.
curl https://api.seedanceapis.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "uncensored",
"response_format": {"type": "json_object"},
"messages": [{"role": "user", "content": "Return JSON with keys shot, lens and mood for a rooftop chase scene."}]
}'
Multi-turn chats and message roles
The API is stateless. To continue a conversation, send the whole message list again, with earlier model replies as assistant messages. A system message goes first and sets standing rules, for example the tone of your scripts or the format of your shot lists. Keep it short, because it is billed as input on every call.
from openai import OpenAI
client = OpenAI(base_url="https://api.seedanceapis.com/v1", api_key="YOUR_API_KEY")
messages = [
{"role": "system", "content": "You write punchy 15-second video scripts. Reply with the script only."},
{"role": "user", "content": "A bakery opening at 6 a.m."},
]
first = client.chat.completions.create(model="uncensored", messages=messages)
messages.append({"role": "assistant", "content": first.choices[0].message.content})
messages.append({"role": "user", "content": "Make it funnier and cut it to 40 words."})
second = client.chat.completions.create(model="uncensored", messages=messages)
print(second.choices[0].message.content)
With a 100,000-token window you rarely need to cut history for length, but you may want to for cost. The cost math is simple: input is $0.15 per 1M tokens, so a 10,000-token history adds $0.0015 to every call.
Two details save time in practice. First, the assistant turns you append should be the exact text you received, since the model reads them as its own earlier words. Second, you can pre-fill a fake exchange as examples, which is a cheap way to teach a format: two sample scripts in user and assistant turns usually fix the length and tone better than a paragraph of instructions. Tool results work the same way, as messages with role: "tool" that follow the assistant message containing the call.
Limits, headers and errors
A full key allows 8 concurrent requests and 300 requests per minute. A trial key allows 2 concurrent and 60 per minute. Request bodies up to 8 MB are accepted. Each response carries X-Request-Id (quote it to support), X-Balance-USD, X-RateLimit-Limit-Requests and X-RateLimit-Limit-Concurrency.
| Situation | What you get | What to do |
|---|---|---|
| Too many requests per minute | HTTP 429, code rate_limited | Wait and retry; spread the batch out |
| Too many requests at once | HTTP 429, code concurrency | Lower your worker count to 8 or fewer |
| Temporary overload | HTTP 429 with Retry-After: 5 | Retry after 5 seconds |
Failed or refused requests are not charged. For pricing detail, see the pricing page: input is $0.15 and output is $0.50 per 1M tokens, from prepaid credit. Prompts are not used for training. One content rule is fixed: sexual content involving minors is never allowed.
Retries and migration notes
A small retry wrapper covers all three 429 cases. The rule is simple: if the response has a Retry-After header, wait that long; otherwise back off with a growing delay and a cap. The official OpenAI SDKs already retry some errors by default, and you can set max_retries on the client if you want to change that.
import time
from openai import OpenAI, RateLimitError
client = OpenAI(base_url="https://api.seedanceapis.com/v1", api_key="YOUR_API_KEY", max_retries=0)
def ask(prompt, tries=5):
delay = 2
for _ in range(tries):
try:
r = client.chat.completions.create(
model="uncensored",
messages=[{"role": "user", "content": prompt}],
)
return r.choices[0].message.content
except RateLimitError as e:
wait = e.response.headers.get("Retry-After")
time.sleep(int(wait) if wait else delay)
delay = min(delay * 2, 30)
raise RuntimeError("still rate limited")
If you are moving an existing OpenAI-based project, the change is small. Set the base URL and key in the client constructor, or through the OPENAI_BASE_URL and OPENAI_API_KEY environment variables that the official SDKs read, and change the model name to uncensored. Chat completions, streaming, tool calls and JSON mode keep the same shapes. Anything that depends on other endpoints, such as image generation, embeddings or fine-tuning, has no counterpart here. The summarization guide shows a complete job built on these calls.
More guides
Questions and answers
Is the API compatible with the OpenAI SDK?
Yes. Change the base URL to https://api.seedanceapis.com/v1, use your key, and set the model to uncensored. Existing OpenAI client code works as is.
Which endpoints exist?
POST /v1/chat/completions for generation and GET /v1/models for listing. There is no image, audio, video or embeddings endpoint.
How large can a prompt be?
The context window is 100,000 tokens, shared by the prompt and the completion, and the request body can be up to 8 MB.
What does a 429 mean?
You hit a limit. The code rate_limited means too many requests per minute and concurrency means too many at once. A 429 with Retry-After: 5 means temporary overload, so retry after 5 seconds.
Can I use it for video generation?
No. It generates text, which is useful for prompts and scripts that you feed into other tools.
Your key is one form away
Create an account, copy the key, change the base URL. That is the whole setup.