doubao-seed-2.0-code-preview

Doubao · Per Token

doubao-seed-2.0-code-previewAvailable
ChatTool UsePreview
Context Window: 256KMax Output Tokens: 16K

Pricing

Official PriceLemonData Price
Input$0.171$0.1197
Output$1.14$0.8001

Parameters

Context Window
256K tokens
Max Output Tokens
16K tokens

Best For

Chat

Conversational AI, customer support, and Q&A

Cost Calculator

1M
0.5M
Estimated Monthly Cost$0.52

API Code Example

POST/v1/chat/completions
curl https://api.lemondata.cc/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxx" \
  -d '{
    "model": "doubao-seed-2.0-code-preview",
    "messages": [
      {"role": "user", "content": "Hello!"}
    ]
  }'

FAQ

How much does doubao-seed-2.0-code-preview cost?

On LemonData, doubao-seed-2.0-code-preview costs $0.1197 per 1M input tokens and $0.8001 per 1M output tokens, which is up to 30% off the official pricing.

What is doubao-seed-2.0-code-preview best for?

doubao-seed-2.0-code-preview excels at Chat, Tool Use, Preview. Access it through LemonData's unified API with a single API key.

How to use doubao-seed-2.0-code-preview API?

Get your API key from LemonData, then call https://api.lemondata.cc/v1/chat/completions using any compatible SDK. See the code examples above for detailed integration.

Related Models