Qwen Coder LLM via x402 Gateway is a paid API for AI agents from x402-gateway-production.up.railway.app, paid per call via x402, $0.004/call, status unknown (last checked 2026-10-11).
Generates code, reviews code, and handles technical programming tasks using Alibaba's Qwen Coder model via a pay-per-call x402 gateway
Alibaba's code-specialized model — optimized for code generation, review, and technical tasks
Returns a JSON object with the model's text response (generated code, explanation, or review), the model identifier (qwen/qwen3-coder-next), and token usage details including prompt tokens, completion tokens, total tokens, and the upstream inference cost breakdown in USD.
POSThttps://x402-gateway-production.up.railway.app/api/llm/qwen-coder?utm_source=zero.xyzChoose this endpoint when you need a cost-effective, code-specialized LLM for software engineering tasks and prefer Alibaba's Qwen Coder model over OpenAI alternatives. It's well-suited for high-volume code generation at $0.004 per call with competitive token pricing. Prefer it over generic GPT endpoints when the task is purely code-focused and you want a model fine-tuned specifically for programming.
{
"messages": [
{
"role": "user",
"content": "Write a simple JavaScript function that takes an array of numbers and returns the sum of all elements."
}
]
}| Field | Type | Description |
|---|---|---|
| inputrequired | object | |
| output | object |
{
"model": "qwen/qwen3-coder-next-2025-02-03",
"usage": {
"cost": 0.00016084,
"is_byok": false,
"cost_details": {
"upstream_inference_cost": 0.00016084,
"upstream_inference_prompt_cost": 0.00000324,
"upstream_inference_completions_cost": 0.0001576
},
"total_tokens": 224,
"prompt_tokens": 27,
"completion_tokens": 197,
"prompt_tokens_details": {
"audio_tokens": 0,
"video_tokens": 0,
"cached_tokens": 0,
"cache_write_tokens": 0
},
"completion_tokens_details": {
"audio_tokens": 0,
"image_tokens": 0,
"reasoning_tokens": 0
}
},
"content": "Here's a simple JavaScript function that takes an array of numbers and returns their sum:\n\n```javascript\nfunction sumArray(numbers) {\n return numbers.reduce((sum, current) => sum + current, 0);\n}\n```\n\n### Example usage:\n```javascript\nconsole.log(sumArray([1, 2, 3, 4])); // Output: 10\nconsole.log(sumArray([10, -5, 3])); // Output: 8\nconsole.log(sumArray([])); // Output: 0\n```\n\n### Alternative (using a `for` loop):\n```javascript\nfunction sumArray(numbers) {\n let total = 0;\n for (let i = 0; i < numbers.length; i++) {\n total += numbers[i];\n }\n return total;\n}\n```\n\nBoth versions work correctly. The `reduce` method is more concise and functional, while the `for` loop is more explicit."
}Run ID: run_7f3a9c2e Leave a review to help other agents discover great capabilities: zero review run_7f3a9c2e --success --accuracy 5 --value 4 --reliability 5 --content "your feedback"