Text Generation

DeepSeek logoDeepSeek

DeepSeek V4.1 Flash API

DeepSeek V4.1 Flash: multimodal reasoning, coding and tool use with a 1M-token context window. Separate from DeepSeek V4 Flash.

24H Status Monitor
24h success rate: 96%
DeepSeek V4.1 Flash

Model:

deepseek-v4.1-flash
Price: 0.75 credits per 1K input tokens · ≈ $0.0004-$0.0008 · 3 credits per 1K output tokens · ≈ $0.0015-$0.003High stability with detailed usage records on the APIAny platform.
PlaygroundHistoryPricingAPI
deepseek-v4.1-flash
55 (suggested: 2,000)
1
02

Sampling temperature.

32768
1393216

Output budget includes reasoning and final answer tokens.

Optional reasoning effort. Leave unset to use the model default. Higher effort can use more tokens and time.

->

USD estimate $0.0495-$0.099: highest recharge package uses $1 = 2,000 credits; entry package uses $1 = 1,000 credits.

Preview
No Task Running
DeepSeek V4.1 Flash
LLMResult preview

History

Saved locally in this browser

0 running · 0 completed

Your generation history will appear here

Input

0.75 credits/1K

≈ $0.0004-$0.0008

Output

3 credits/1K

≈ $0.0015-$0.003

Cache

0.02 credits/1K

≈ $0.000007-$0.000015

Context

1M

Max output

393k
View API usage
Pricing
Model ID
Type
Quality
Price
deepseek-v4.1-flash
Text Generation
Input tokens
0.75 credits per 1K input tokens · ≈ $0.0004-$0.0008
deepseek-v4.1-flash
Text Generation
Cache read tokens
0.02 credits per 1K cached input tokens · ≈ $0.000007-$0.000015
deepseek-v4.1-flash
Text Generation
Output tokens
3 credits per 1K output tokens · ≈ $0.0015-$0.003
deepseek-v4.1-flash
Text Generation
Minimum request
0.75 credits minimum · ≈ $0.0004-$0.0008
Model IDdeepseek-v4.1-flash
TypeText Generation
QualityInput tokens
Price0.75 credits per 1K input tokens · ≈ $0.0004-$0.0008
Model IDdeepseek-v4.1-flash
TypeText Generation
QualityCache read tokens
Price0.02 credits per 1K cached input tokens · ≈ $0.000007-$0.000015
Model IDdeepseek-v4.1-flash
TypeText Generation
QualityOutput tokens
Price3 credits per 1K output tokens · ≈ $0.0015-$0.003
Model IDdeepseek-v4.1-flash
TypeText Generation
QualityMinimum request
Price0.75 credits minimum · ≈ $0.0004-$0.0008

API Reference

Call this model through a standard REST API. Authenticate with your API key, then pick an endpoint below to see its parameters and examples.

Authentication

Every request needs a Bearer token in the Authorization header. Create an API key in the console.

Authorization: Bearer YOUR_API_KEY
POSThttps://apiany.ai/v1/chat/completions

Request parameters

ParameterTypeRequiredNotes
modelstringRequiredModel identifier to invoke. Use this model's ID.
messagesarrayRequiredConversation history in OpenAI chat format (role + content).
streambooleanOptionalWhen true, the response streams back as server-sent events.

Request example

curl "https://apiany.ai/v1/chat/completions" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "deepseek-v4.1-flash",
  "messages": [
    {
      "role": "user",
      "content": "Explain one practical way to make an API more reliable."
    }
  ],
  "temperature": 1,
  "max_tokens": 32768
}'

Response example

{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "deepseek-v4.1-flash",
  "choices": [
    {
      "index": 0,
      "message": {
        "role": "assistant",
        "content": "Hello! How can I help?"
      },
      "finish_reason": "stop"
    }
  ],
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 18,
    "total_tokens": 30
  }
}

More models

Explore all models

DeepSeek V4 Flash

DeepSeek logoText Generation

GLM 5.3 Flash

GLM logoText Generation

Gemini 3.5 Flash

Google logoText Generation

MiniMax M3

MiniMax logoText Generation

New users get free credits - no credit card required Get started
APIAny logoAPIAny
AI Models
PricingFree API
Resources
Sign InGet Started

APIAny API gateway for every production AI model.

Popular Models

Collections

Model Types

Platform

  • Docs
  • Contact

Legal

APIAny logoAPIAny© 2026 APIAny. All rights reserved.
support@apiany.ai
Seedance 2.0
GPT Image 2
Nano Banana 2
Z-Image
Gemini Omni
All Collections
GPT API Family
Seedance API Family
Gemini API Family
GPT Image API
Text Generation
Image Generation
Video Generation
Audio Generation
Models
Pricing
About
Privacy Policy
Terms of Service
Refund Policy
English
Français
Deutsch
中文
日本語
한국어
Español