All models

deepseek-flash API ★

DeepSeekChat
Get your API key

DeepSeek Flash

deepseek-flash is the Flash-compatible model name for the AceDataCloud chat API. The compatible names deepseek-v4.1-flash, deepseek-v4.1-flash-1017, and deepseek-v4-flash use the same rates.

View API · View pricing

STANDARD APIs · QUICK SETUP

Keep your SDK. Connect in minutes.

Point the Base URL to api.acedata.cloud, configure your platform API key and the model ID below, and use your compatible SDK or client.

API host
api.acedata.cloud
model
deepseek-flash
Get your API key
OpenAI Python SDK
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["ACEDATACLOUD_API_KEY"],
    base_url="https://api.acedata.cloud/v1",
)
response = client.chat.completions.create(
    model="deepseek-flash",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)

Choose an available protocol for this model. OpenAI SDK uses a Base URL ending in /v1; Anthropic SDK uses the root URL. See each guide for protocol-specific parameters, tools and response formats.

Request information

Request model
deepseek-flash
Request path
POST /deepseek/chat/completions

Send your first message

Provide the API Token in the request header. The JSON request body contains model and messages; for example, send a message object with role: user and text content. For a complete request example, see the DeepSeek Chat Completion API.

Read the response

For a non-streaming request, read the text from choices[0].message.content. For streaming output, set stream: true, read the text in choices[0].delta.content in order, and stop reading after receiving [DONE].

Continue the conversation

Place the previous user question, the assistant's answer, and the current question in the same messages array. When the original text or constraints need to be retained, include them in the current request.

Migrate existing Flash conversations to the standard name

Change the original request's model to deepseek-flash, keep the same messages and stream parameter, and compare the complete response or streaming chunks actually received by the application.

Usage and pricing

The platform bills actual input, cache-hit input, and output tokens separately. DeepSeek Flash uses Flash rates. Check usage against the current pricing page and the usage statistics in the response.

Frequently asked questions

Do existing Flash configurations need to be renamed immediately?

The published compatible names remain supported and cost the same as the standard name. New configurations can use deepseek-flash directly.

Which model field should the request use?

Enter "model": "deepseek-flash" in the JSON request body.

When should I use streaming output?

Enable stream to display the answer as it is generated; use a non-streaming response to parse the complete message at once.

How do I send multiple turns of messages?

Set the role for each user and assistant message and add them to the message array in chronological order.

Where can I check actual spending?

Find the corresponding request in the console's usage records and compare it with the input, cached input, and output rates on the current pricing page.