Skip to main content
POST
Chat Completions qwen ilm
Product: Visual Intelligence — Image Model APIs (atomic) Use case: Call an Image Language Model (Gemini / GPT / Nova / Qwen) directly with your own prompt. Full control over model and parameters. Host: https://mavi-backend.memories.ai/serve/api/v2 Auth: Authorization: sk-mavi-... (no Bearer prefix)
This endpoint allows you to generate chat completions with image inputs using Qwen ILM model.
Endpoint: POST https://mavi-backend.memories.ai/serve/api/v2/iu/chat/completionsImage Understanding (ILM) endpoints use the /iu path prefix. Video Understanding (VLM) endpoints use /vu instead.

Supported Models

All models require the qwen: prefix when used in the model parameter (e.g., qwen:qwen3-vl-plus).

Qwen 3 VL Plus (Premium - Tiered Pricing)

Qwen 3 VL Flash (Cost-Effective - Tiered Pricing)

Qwen VL Max (Legacy)

Qwen VL Plus (Legacy)

Pricing Notes:
  • All prices are per 1,000 tokens and converted from CNY at exchange rate of 7.0
  • Tip: To compare with other providers (who price per 1M tokens), multiply these prices by 1,000. For example, $0.00021/1K = $0.21/1M tokens
  • Qwen 3 VL models support tiered pricing: ≤32K, 32K-128K, 128K-256K token ranges
  • Legacy models (Qwen VL Max/Plus) use flat-rate pricing
  • Remember to include the qwen: prefix: "model": "qwen:qwen3-vl-plus"

Request Body

Code Example

Response

Returns the chat completion response with structured output.

Response Parameters

Authorizations

Authorization
string
header
required

Body

application/json
model
string
required

The model to use (e.g., qwen:qwen3-vl-plus)

Example:

"qwen:qwen3-vl-plus"

messages
object[]
required

Array of message objects

temperature
number
default:0.7

Controls randomness: 0.0-2.0, higher = more random

Required range: 0 <= x <= 2
max_tokens
integer
default:1024

Maximum number of tokens to generate

top_p
number
default:0.9

Nucleus sampling: 0.0-1.0

Required range: 0 <= x <= 1
frequency_penalty
number
default:0

Reduces repetition of frequent tokens: -2.0 to 2.0

Required range: -2 <= x <= 2
presence_penalty
number
default:0

Increases likelihood of new topics: -2.0 to 2.0

Required range: -2 <= x <= 2
n
integer
default:1

Number of completions to generate

stream
boolean
default:false

Whether to stream the response

stop

Stop sequences

extra_body
object

Response

200 - application/json

Chat completion response with structured output

id
string
required

Unique identifier for the completion

Example:

"6612267a-d08f-9ea0-a254-7bcea6339f49"

object
string
required

Object type, always 'completion'

Example:

"completion"

model
string
required

The model used for the completion

Example:

"qwen3-vl-plus"

created_at
integer
required

Unix timestamp of when the completion was created

Example:

1767094289

status
string
required

Status of the completion

Example:

"completed"

choices
object[]
required
usage
object
required
meta
object
required