APIMart
Back to all models

Qwen3.7-Flash API

AlibabaModel ID qwen3.7-flashText model

Use Qwen3.7-Flash to pull the fields out of thousands of receipt photos, check a shelf photo against the loading rule, or turn a whiteboard sketch into a working form.

Max input
983,616 tokens
Max output
131,072 tokens
Input → output
Text, Image, Video → Text
  • Image input
  • Streaming
  • Cached input pricing
  • OpenAI SDK compatible

Qwen3.7-Flash API use cases

Each use case comes with an illustrative example: source material, a prompt and a hand-written sample answer, not actual model output. Copy the prompt, swap in your own material and try it on Qwen3.7-Flash.

Try Qwen3.7-Flash with your own material

Fields from receipt and form photos

Send Qwen3.7-Flash each photo with a JSON schema and ask for the fields plus a check that the numbers add up. Turn thinking off for clean scans, and route every flagged receipt to a person.

Example: Do the numbers on this receipt add up?

Material

Receipt photo
Harbor Café, 2026-11-14. Subtotal 18.40, tax 1.66, total 21.06.
Schema
merchant, date, subtotal, tax, total, needs_review.

PromptExtract merchant, date, subtotal, tax and total from the receipt photo as JSON, and set needs_review to true if subtotal plus tax does not equal the total.

Sample answer · written by hand to show the reasoning

{"merchant": "Harbor Café", "date": "2026-11-14", "subtotal": 18.40, "tax": 1.66, "total": 21.06, "needs_review": true}. 18.40 + 1.66 = 20.06, so the printed total is 1.00 higher than the sum; a person should check whether a line is cut off in the photo or the total was misread.

About the Qwen3.7-Flash API

  • An upgrade over Qwen3.6-Flash

    Alibaba describes a comprehensive upgrade in multimodal understanding and agent execution, with more stable end-to-end runs in search and code-interpreter agents and smoother multimodal coding.

  • Reads images and video

    Input covers text, images and video, and output is text. Alibaba highlights stronger object recognition, real-world perception and spatial intelligence in this version.

  • Thinking on by default, off when you need speed

    Qwen3.7-Flash thinks before answering unless you set enable_thinking to false. Turn it off for clean extraction and simple checks, and keep it on for multi-step tasks.

  • Qwen3.7-Flash API key and access

    You don’t need a separate Qwen3.7-Flash API key: one APIMart key works for every model. Requests go through an OpenAI Chat Completions-compatible endpoint with the model ID qwen3.7-flash.

How to call the Qwen3.7-Flash API

To call Qwen3.7-Flash, you only need an APIMart API key and your existing OpenAI SDK, or send plain HTTP requests.

POST /v1/chat/completions
curl https://api.apimart.ai/v1/chat/completions \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "qwen3.7-flash",
  "messages": [
    {
      "role": "user",
      "content": "Describe how to design a clear API in three sentences."
    }
  ],
  "stream": false
}'

Qwen3.7-Flash access details

Model IDqwen3.7-flash
Base URLhttps://api.apimart.ai/v1
Endpoint/chat/completions

Common parameters

model
Required
messages
Required
stream
Optional
max_tokens
Optional
temperature
Optional
All request parameters, response fields and error codes

Qwen3.7-Flash API request parameters

Qwen3.7-Flash uses the general chat endpoint, POST /v1/chat/completions, with a JSON body. model and messages are required; every other parameter is optional.

ParameterTypeRequiredDescription
modelstringYesModel ID. Use qwen3.7-flash for this model.
messagesarrayYesConversation messages. Each message has a role (system, user, or assistant) and content. Include earlier messages for multi-turn conversations.
streambooleanNoWhether to stream the output. true returns chunks over SSE, false returns the full response at once. Default: true.
temperaturenumberNoOutput randomness, 0–2. Default: 1.0. Lower values give more deterministic output.
top_pnumberNoNucleus sampling, 0–1. Default: 1.0. Adjust this or temperature, not both.
max_tokensintegerNoMaximum number of tokens to generate for the reply.
frequency_penaltynumberNoFrequency penalty, -2.0 to 2.0. Default: 0. Positive values reduce repeated wording.
presence_penaltynumberNoPresence penalty, -2.0 to 2.0. Default: 0. Positive values encourage new topics.
stopstring | arrayNoUp to 4 stop sequences. Generation stops when any of them appears.
nintegerNoNumber of replies to generate. Default: 1.

Response fields

The response contains the fields below. Token usage is returned in usage, which you can use to check costs.

FieldTypeDescription
idstringUnique identifier for the request.
modelstringThe model that handled the request.
choicesarrayList of replies. Each item contains message (role and content) and finish_reason.
usageobjectToken usage: prompt_tokens, completion_tokens, and total_tokens.

Error codes

Failed requests return an error object with code, message, and type.

StatusTypeMeaning
400invalid_request_errorInvalid request parameters.
401authentication_errorThe API key is invalid or missing.
402payment_requiredInsufficient account balance.
403permission_errorNo permission to access this resource.
429rate_limit_errorToo many requests. Retry later.
500server_errorInternal server error.
502bad_gatewayGateway error. The service is temporarily unavailable.

Qwen3.7-Flash API pricing

The Qwen3.7-Flash API is billed by token usage, and prices depend on your membership tier. Prices below are per million tokens; 1 US dollar = 10 credits.

ItemGoldCurrent pricePlatinumDiamondOfficial priceYou save
Input0.2286Credits~$0.02290.2171Credits~$0.02170.2057Credits~$0.02060.2857Credits~$0.028620%
Cached input0.0457Credits~$0.00460.0434Credits~$0.00430.0411Credits~$0.00410.0571Credits~$0.005720%
Output0.9143Credits~$0.09140.8686Credits~$0.08690.8229Credits~$0.08231.1429Credits~$0.114320%

Prices are for reference only. View full pricing

Why call Qwen3.7-Flash API through APIMart

  • 20% below official pricing

    Qwen3.7-Flash API pricing is billed by token usage. Gold to Diamond member prices are 20%–28% below Alibaba's official prices, and cached input costs just $0.0046 per 1M tokens.

    See membership prices
  • One API key for 500+ models

    Qwen3.7-Flash, the rest of its family and 500+ models from GPT, Claude, Gemini and more share one API key and one account balance. Switching models is just a change to the model parameter.

  • Change two lines of existing code

    If you already use the OpenAI SDK, point base_url at https://api.apimart.ai/v1 and swap in your APIMart API key. Requests and responses keep the same format.

  • Try it online before you code

    Try Qwen3.7-Flash with your own material in the Playground, no code or setup needed, and integrate once you like the results.

    Open Playground

Which Alibaba model should you choose?

Base prices per 1M tokens (USD). Your Qwen3.7-Flash API key works for every model in the table; just change the model parameter.

Differences between Alibaba models
ComparisonQwen3.7-Flash CurrentQwen3.8-27BQwen3.8-FlashQwen3.8-2.4T-A95BQwen3.8-MaxQwen4-Max
Best forImage & video input, Multimodal agents, High-volume tasksOpen weights, Coding & office work, Image & video inputHigh-volume calls, Coding & agents, Image & video inputOpen-weight flagship, Deep reasoning, Text onlyFlagship model, Images, video & PDF, Web searchComplex coding, Agent tasks, Image & video input
Input typesText, Image, VideoText, Image, VideoText, Image, VideoTextText, Image, VideoText, Image, Video
Max input983,616 tokens983,616 tokens983,616 tokens983,616 tokens983,616 tokens991,808 tokens
Input price$0.0229$0.3429$0.0914$1.3714$1.3714$1.4286
Output price$0.0914$1.3714$0.3086$4.1143$4.1143$4.2857

Qwen3.7-Flash FAQ

How is Qwen3.7-Flash different from Qwen3.6-Flash?

Alibaba describes Qwen3.7-Flash as a comprehensive upgrade over Qwen3.6-Flash in multimodal understanding and agent execution: stronger object recognition, real-world perception and spatial intelligence, more stable search and code-interpreter agents, and better multimodal coding. Alibaba has not published benchmark scores for it, so compare the two on your own prompts; on APIMart you switch to the Qwen 3.7 Flash API by changing the model parameter to qwen3.7-flash.

Should I use Qwen3.7-Flash or Qwen3.7-Plus?

Start with Qwen3.7-Flash for high-volume, well-defined steps such as extraction, photo checks and agent tool calls, where its lower price matters most. Alibaba positions Qwen3.7-Plus as the higher tier, with multimodal interactive hybrid agent capabilities as its key feature, so move hard multi-step tasks there if Flash falls short. Both take the same APIMart API key; see each page’s pricing table for the cost difference.

Can I turn off thinking on Qwen3.7-Flash?

Yes. Alibaba’s documentation lists Qwen3.7-Flash as a hybrid thinking model with thinking on by default. Set enable_thinking to false in the request to get a direct answer, which is faster and uses fewer output tokens; leave it on for multi-step reasoning.

Is the Qwen3.7-Flash context window 1,000,000 or 983,616 tokens?

Alibaba Cloud’s documentation lists a context window of 1,000,000 tokens for Qwen3.7-Flash; in thinking mode, max input is 983,616 tokens and max output 131,072 tokens. The Max input and Max output on this page come from APIMart’s pricing data: input up to 983,616 tokens and output up to 131,072 tokens. On APIMart, plan your requests with the figures on this page.

Can Qwen3.7-Flash read images and video?

Yes. Alibaba lists text, images and video as input and text as output for Qwen3.7-Flash. It does not generate images, audio or video.

Does Qwen3.7-Flash support context caching?

Yes. Alibaba’s documentation lists Qwen3.7-Flash for explicit caching: the cached prefix must be at least 1,024 tokens and lasts 5 minutes, renewed on each hit. Writing the cache costs more than normal input, and hits are billed at the cached-input rate in the pricing table.

How can I try this model online?

Click Start chatting or Open Playground to visit the existing APIMart Playground. Select Qwen3.7-Flash in the text category to start exploring.

Which model ID does the Qwen3.7-Flash API use?

Set model to qwen3.7-flash. Copy the exact ID from the page heading or the integration details panel.

Is it compatible with the OpenAI SDK?

You can keep the OpenAI SDK. Set base_url to https://api.apimart.ai/v1, provide your APIMart API key, and use the model ID on this page.

What is the context window of Qwen3.7-Flash?

On APIMart, Qwen3.7-Flash accepts up to 983,616 input tokens per request. Your prompt, earlier messages, and file content all count toward it.

How many tokens can it output at once?

Qwen3.7-Flash can output up to 131,072 tokens in a single reply. Use the max_tokens parameter to set a lower limit.

How much does the Qwen3.7-Flash API cost?

The Qwen3.7-Flash API on APIMart is billed by token, and prices depend on your membership tier. Gold: $0.0229 per million input tokens and $0.0914 per million output tokens. Diamond: $0.0206 per million input tokens and $0.0823 per million output tokens. Prices may change; the pricing page has the current rates.

Does it support streaming?

Yes. The general chat endpoint streams over SSE by default. Set stream to false to receive the complete response at once.

How do I get an API key?

Sign in to APIMart and create a key on the API Keys page, then send it in the Authorization: Bearer header. The same key also works for other models on the platform.