DeepSeek V4 Flash 0731
Sign in to try DeepSeek V4 Flash 0731
Sign in with your Google account and top up credits to get started.
Sign in with GoogleUse via API
Base URL: https://adverraai.com/hub/api/v1 · Authenticate with Authorization: Bearer YOUR_API_KEY
curl https://adverraai.com/hub/api/v1/chat/completions \
-H "Authorization: Bearer $ADVERRA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek/deepseek-v4-flash-0731",
"messages": [{"role": "user", "content": "Hello"}],
"stream": false
}'
# pip install openai
from openai import OpenAI
client = OpenAI(base_url="https://adverraai.com/hub/api/v1", api_key="YOUR_API_KEY")
r = client.chat.completions.create(
model="deepseek/deepseek-v4-flash-0731",
messages=[{"role": "user", "content": "Hello"}],
)
print(r.choices[0].message.content)
const r = await fetch("https://adverraai.com/hub/api/v1/chat/completions", {
method: "POST",
headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" },
body: JSON.stringify({ model: "deepseek/deepseek-v4-flash-0731", messages: [{ role: "user", content: "Hello" }] })
});
const data = await r.json();
console.log(data.choices[0].message.content, data.usage.credits);
Fully compatible with OpenAI Chat Completions: stream, temperature, max_tokens, tools, image messages, etc. The response includes usage.credits showing the credits used.
Parameters for this model
Send as JSON in the request body. Fields marked * are required.
| Parameter | Type | Allowed values | Default | Description |
|---|---|---|---|---|
model * |
string | – | – | ID of the model to call — deepseek/deepseek-v4-flash-0731 |
messages * |
array | – | – | Conversation messages, each with role (system / user / assistant) and content |
max_tokens |
integer | – | – | Maximum tokens in the answer |
temperature |
number | 0 – 2 | 1 | Randomness of the answer; lower is steadier |
top_p |
number | 0 – 1 | 1 | Nucleus sampling threshold |
stream |
boolean | true, false | false | Stream the answer back in chunks (SSE) |
stop |
string | array | – | – | Sequences where generation stops |
tools |
array | – | – | Tools (functions) the model may call |
tool_choice |
string | object | – | – | Controls how tools are chosen |
response_format |
object | – | – | Forces an answer format such as JSON |
🤖 ต่อกับ AI Agent
คัดลอกข้อความนี้ไปวางให้ AI Agent (เช่น Claude, ChatGPT, Gemini, Cursor, Codex) แล้วมันจะเรียกใช้โมเดลนี้ผ่านระบบของเราได้ทันที · ในข้อความมีวิธีเชื่อมต่อ พารามิเตอร์ และวิธีรับผลงานครบ · เลือกคีย์ด้านบนเพื่อใส่ในข้อความที่จะคัดลอก
# Adverra AI Hub — DeepSeek V4 Flash 0731 (`deepseek/deepseek-v4-flash-0731`)
You can use this AI model through the Adverra AI Hub REST API. Follow these instructions exactly.
## Connection
- Base URL: https://adverraai.com/hub/api/v1
- Header: `Authorization: Bearer <ADVERRA_API_KEY>` (read the credential from the ADVERRA_API_KEY environment variable). Never print the key.
- Header: `Content-Type: application/json`
- Endpoint: `POST https://adverraai.com/hub/api/v1/chat/completions`
- Credits are deducted from the user's Adverra balance (check with `GET https://adverraai.com/hub/api/v1/me`).
## Example request body
```json
{
"model": "deepseek/deepseek-v4-flash-0731",
"messages": [
{
"role": "user",
"content": "สวัสดี"
}
]
}
```
## Parameters
- `model` (string, required) — ID of the model to call — deepseek/deepseek-v4-flash-0731
- `messages` (array, required) — Conversation messages, each with role (system / user / assistant) and content
- `max_tokens` (integer, optional) — Maximum tokens in the answer
- `temperature` (number, optional) — Randomness of the answer; lower is steadier · allowed: 0 – 2 · default: 1
- `top_p` (number, optional) — Nucleus sampling threshold · allowed: 0 – 1 · default: 1
- `stream` (boolean, optional) — Stream the answer back in chunks (SSE) · allowed: true, false · default: false
- `stop` (string | array, optional) — Sequences where generation stops
- `tools` (array, optional) — Tools (functions) the model may call
- `tool_choice` (string | object, optional) — Controls how tools are chosen
- `response_format` (object, optional) — Forces an answer format such as JSON
## Result
OpenAI-compatible chat completion response. Set `"stream": true` for server-sent events.
## Errors
- 401 = invalid API key · 402 = not enough credits (tell the user to top up at https://adverraai.com/hub/topup.php) · 429 = too many requests (wait and retry) · 5xx = temporary error (credits are refunded automatically).
## MCP (optional)
Agents that support MCP can connect to `https://adverraai.com/hub/mcp.php` instead (setup guide: https://adverraai.com/hub/connect.php).
About this model
DeepSeek V4 Flash 0731 is a Chat & Text model by DeepSeek
DeepSeek V4 Flash 0731 is a powerful and efficient sparse mixture-of-experts language model developed by DeepSeek. With 13 billion active parameters, it is particularly well-suited for complex tasks such as coding, advanced reasoning, and supporting AI agent workflows. This model offers a balance of performance and efficiency for various text-based applications.
Key features
- Sparse mixture-of-experts architecture
- 13 billion active parameters (out of 284 billion total)
- Optimized for coding tasks
- Enhanced reasoning capabilities
- Designed for AI agent workflows
- Efficient processing for text generation
- Supports a 1,048,576 token context window
What you can do
- Generating code snippets and functions
- Assisting with debugging and code optimization
- Developing intelligent AI agents
- Automating complex reasoning tasks
- Creating detailed technical documentation
- Summarizing lengthy articles and reports
- Crafting creative content and stories
- Answering complex questions across various domains
Specs
- Model type: Chat / Text LLM
- Context window: 1,048,576 tokens
- Input type: Text
- Output type: Text
Prompt tips
- For coding tasks, specify the programming language and desired output format (e.g., 'Generate a Python function for...', 'Write a JavaScript snippet that...').
- When asking for reasoning, break down complex problems into smaller steps or provide examples of the desired reasoning process.
- For agent workflows, clearly define the agent's goal, available tools, and expected interaction patterns.
- Utilize the large context window by providing extensive background information or conversational history for more coherent and relevant responses.
- Be explicit about the desired tone, style, and length of the generated text to guide the model effectively.
- If the output is not satisfactory, try rephrasing your prompt or adding more constraints and examples.