Text modelsAdvanced usersUpdated
POST/v1/chat/completions

API console

POST/v1/chat/completions
View keys

Requests use the API key you enter and follow standard API billing.

Qwen 3.7 Plus

Request ID qwen3.7-plus

Protocols

Authentication

Requests require an API key from API key management. For JSON requests, set Content-Type: application/json.

  • Authorization: Bearer YOUR_API_KEY

Request parameters

POST /v1/chat/completions

FieldTypeRequiredDescription
modelstringRequiredSet the model ID to qwen3.7-plus.
messagesobject[]RequiredSend messages in conversation order. Each message has a role and content.
messages[].contentstring / object[]ConditionalThe message body. Use plain text or an array of content blocks defined by the protocol.
streambooleanOptionaltrue requests an SSE stream. false requests a JSON response. Available modes depend on the endpoint.
max_completion_tokensintegerConditionalCaps generated tokens, including reasoning tokens where applicable. Use on endpoints that accept this field.
max_tokensintegerConditionalCompatibility field for the output token limit. Choose this field or max_completion_tokens according to the endpoint.
temperaturenumberConditionalControls sampling randomness. Accepted values and whether the field takes effect depend on the model and endpoint.
top_pnumberConditionalLimits sampling candidates by cumulative probability. Use when the model and endpoint support it.
response_formatobjectConditionalFor structured output, use type: json_object, or use type: json_schema with json_schema when the endpoint supports schemas.

Request examples

Set your API key in the local ICODEEASY_API_KEY environment variable and choose an endpoint that accepts direct HTTP calls. For endpoints that require a specific client, follow that client’s setup guide.

Chat Completions

bash
curl -sS 'https://api.icodeeasy.cc/v1/chat/completions' \
  -H "Authorization: Bearer $ICODEEASY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{
  "model": "qwen3.7-plus",
  "messages": [
    {
      "role": "user",
      "content": "Explain how a rainbow forms in one sentence."
    }
  ],
  "stream": false
}'

Read the response

  • Chat Completions · Read text from choices[].message.content. In an SSE stream, incremental output appears in choices[].delta. JSON · SSE

Full integration guide

Model Capability Catalog · View pricing