Sozdai LogoDocs
Docs/LLM

Qwen3.7 Plus

1M contextCaché de promptsRazonamiento
POSThttps://api.foxwire.ai/v1/chat/completions

#Pricing Summary

#Solicitud de ejemplo

Execute completions using standard OpenAI SDK formats by pointing base endpoints here.

bash
curl https://api.foxwire.ai/v1/chat/completions \
  -H "Authorization: Bearer $CORRY_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "qwen3.7-plus",
    "messages": [{"role": "user", "content": "Hello"}]
  }'

#Ejemplo de respuesta

Un objeto de chat completion estándar compatible con OpenAI. El campo model se normaliza al nombre que solicitaste.

json
{
  "id": "chatcmpl-abc123",
  "object": "chat.completion",
  "model": "qwen3.7-plus",
  "choices": [
    {
      "index": 0,
      "message": { "role": "assistant", "content": "Hello! How can I help you today?" },
      "finish_reason": "stop"
    }
  ],
  "usage": { "prompt_tokens": 12, "completion_tokens": 9, "total_tokens": 21, "cost": 0.000234, "currency": "USD" }
}

Cost field

usage.cost is the amount charged for this call (in USD); in streaming it arrives on the final chunk that carries usage. OpenAI SDKs ignore this extra field.

#Caché de prompts

Para modelos con soporte de caché, coloca primero el contenido estático largo (sistema, base de conocimiento) y añade un punto de ruptura de caché. Las partes en caché pueden costar tan solo 1/10. Los aciertos de caché se indican en el campo usage de la respuesta.

json
{
  "model": "qwen3.7-plus",
  "messages": [
    {
      "role": "system",
      "content": [
        { "type": "text", "text": "( long static context ... )", "cache_control": { "type": "ephemeral" } }
      ]
    },
    { "role": "user", "content": "your question" }
  ]
}

Prompt Caching Tip

Prompt caching matches request prefixes exactly. Make sure long contexts (e.g. system instructions, developer tools) appear at the start of your message list.

#Razonamiento

Para los modelos compatibles, añade reasoning_effort (low / medium / high). El razonamiento se devuelve en el campo reasoning_content de la respuesta; los tokens de razonamiento se facturan a la tarifa de salida.

json
{
  "model": "qwen3.7-plus",
  "max_tokens": 2048,
  "reasoning_effort": "high",
  "messages": [{ "role": "user", "content": "your question" }]
}