{"slug":"api-ai-open-models-com-v1-model-panel-request-body-edb505","title":"Converts one natural-language task into validated OpenAI-compatible JSON request","host":"api.ai-open-models.com","method":"POST","resource":"https://api.ai-open-models.com/v1/model-panel/request-body","category":"code","description":"Converts one natural-language task into validated OpenAI-compatible JSON request bodies for multiple open-weight models. Uses the optional models list when supplied; otherwise uses all catalogue models compatible with the input. Supports text, visual input, and model-supported reasoning levels. Retu","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":1566,"reported_calls_30d":5,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"messages":[{"content":"Explain EIP-1559 transaction fees in plain language. Keep the answer under 300 words.","role":"user"}],"models":["moonshotai/kimi-k3","zai-org/GLM-5.3-Flash"]},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"body":{"additionalProperties":false,"properties":{"messages":{"contains":{"properties":{"role":{"const":"user"}},"required":["role"],"type":"object"},"description":"One task expressed as system and user messages. Supports plain text or visual input.","items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"role":{"const":"system"}},"required":["role"]},"then":{"properties":{"content":{"type":"string"}},"required":["content"]}},{"if":{"properties":{"role":{"const":"user"}},"required":["role"]},"then":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"type":{"const":"text"}},"required":["type"]},"then":{"not":{"required":["image_url"]},"required":["text"]}},{"if":{"properties":{"type":{"const":"image_url"}},"required":["type"]},"then":{"not":{"required":["text"]},"required":["image_url"]}}],"properties":{"image_url":{"additionalProperties":false,"properties":{"detail":{"description":"Requested image detail level. Availability and visual-token usage are provider-specific.","enum":["auto","low","high"],"type":"string"},"url":{"anyOf":[{"maxLength":8192,"minLength":1,"pattern":"^https://","type":"string"},{"maxLength":6990540,"minLength":1,"pattern":"^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$","type":"string"}],"description":"Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."}},"required":["url"],"type":"object"},"text":{"type":"string"},"type":{"enum":["text","image_url"],"type":"string"}},"required":["type"],"type":"object"},"minItems":1,"type":"array"}]}},"required":["content"]}},{"if":{"properties":{"role":{"const":"assistant"}},"required":["role"]},"then":{"properties":{"content":{"type":["string","null"]}},"required":["content"]}},{"if":{"properties":{"role":{"const":"tool"}},"required":["role"]},"then":{"properties":{"content":{"type":"string"},"tool_call_id":{"minLength":1,"type":"string"}},"required":["content","tool_call_id"]}}],"properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"},{"items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"type":{"const":"text"}},"required":["type"]},"then":{"not":{"required":["image_url"]},"required":["text"]}},{"if":{"properties":{"type":{"const":"image_url"}},"required":["type"]},"then":{"not":{"required":["text"]},"required":["image_url"]}}],"properties":{"image_url":{"additionalProperties":false,"properties":{"detail":{"description":"Requested image detail level. Availability and visual-token usage are provider-specific.","enum":["auto","low","high"],"type":"string"},"url":{"anyOf":[{"maxLength":8192,"minLength":1,"pattern":"^https://","type":"string"},{"maxLength":6990540,"minLength":1,"pattern":"^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$","type":"string"}],"description":"Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."}},"required":["url"],"type":"object"},"text":{"type":"string"},"type":{"enum":["text","image_url"],"type":"string"}},"required":["type"],"type":"object"},"minItems":1,"type":"array"}]},"name":{"minLength":1,"type":"string"},"reasoning_content":{"type":"string"},"role":{"enum":["system","user"],"type":"string"},"tool_call_id":{"minLength":1,"type":"string"},"tool_calls":{"items":{"additionalProperties":false,"properties":{"function":{"additionalProperties":false,"properties":{"arguments":{"type":"string"},"name":{"minLength":1,"type":"string"}},"required":["name","arguments"],"type":"object"},"id":{"minLength":1,"type":"string"},"type":{"const":"function","type":"string"}},"required":["id","type","function"],"type":"object"},"minItems":1,"type":"array"}},"required":["role"],"type":"object"},"maxItems":16,"minItems":1,"type":"array"},"models":{"description":"Optional catalogue model IDs. When omitted, request bodies are created for every model compatible with the input.","items":{"enum":["moonshotai/kimi-k3","Qwen/Qwen3.6-35B-A3B","zai-org/GLM-5.2","zai-org/GLM-5.3","zai-org/GLM-5.3-Flash","Qwen/Qwen3.8-27B","deepseek-ai/DeepSeek-V4.1-Flash"],"type":"string"},"maxItems":7,"minItems":1,"type":"array","uniqueItems":true}},"required":["messages"],"type":"object"},"bodyType":{"enum":["json","form-data","text"],"type":"string"},"method":{"enum":["POST"],"type":"string"},"type":{"const":"http","type":"string"}},"required":["type","method","bodyType","body"],"type":"object"},"output":{"properties":{"example":{"additionalProperties":false,"properties":{"requests":{"items":{"additionalProperties":false,"properties":{"max_tokens":{"maximum":131072,"minimum":1,"type":"integer"},"messages":{"contains":{"properties":{"role":{"const":"user"}},"required":["role"],"type":"object"},"items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"role":{"const":"system"}},"required":["role"]},"then":{"properties":{"content":{"type":"string"}},"required":["content"]}},{"if":{"properties":{"role":{"const":"user"}},"required":["role"]},"then":{"properties":{"content":{"anyOf":[{"type":"string"},{"items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"type":{"const":"text"}},"required":["type"]},"then":{"not":{"required":["image_url"]},"required":["text"]}},{"if":{"properties":{"type":{"const":"image_url"}},"required":["type"]},"then":{"not":{"required":["text"]},"required":["image_url"]}}],"properties":{"image_url":{"additionalProperties":false,"properties":{"detail":{"description":"Requested image detail level. Availability and visual-token usage are provider-specific.","enum":["auto","low","high"],"type":"string"},"url":{"anyOf":[{"maxLength":8192,"minLength":1,"pattern":"^https://","type":"string"},{"maxLength":6990540,"minLength":1,"pattern":"^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$","type":"string"}],"description":"Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."}},"required":["url"],"type":"object"},"text":{"type":"string"},"type":{"enum":["text","image_url"],"type":"string"}},"required":["type"],"type":"object"},"minItems":1,"type":"array"}]}},"required":["content"]}},{"if":{"properties":{"role":{"const":"assistant"}},"required":["role"]},"then":{"properties":{"content":{"type":["string","null"]}},"required":["content"]}},{"if":{"properties":{"role":{"const":"tool"}},"required":["role"]},"then":{"properties":{"content":{"type":"string"},"tool_call_id":{"minLength":1,"type":"string"}},"required":["content","tool_call_id"]}}],"properties":{"content":{"anyOf":[{"type":"string"},{"type":"null"},{"items":{"additionalProperties":false,"allOf":[{"if":{"properties":{"type":{"const":"text"}},"required":["type"]},"then":{"not":{"required":["image_url"]},"required":["text"]}},{"if":{"properties":{"type":{"const":"image_url"}},"required":["type"]},"then":{"not":{"required":["text"]},"required":["image_url"]}}],"properties":{"image_url":{"additionalProperties":false,"properties":{"detail":{"description":"Requested image detail level. Availability and visual-token usage are provider-specific.","enum":["auto","low","high"],"type":"string"},"url":{"anyOf":[{"maxLength":8192,"minLength":1,"pattern":"^https://","type":"string"},{"maxLength":6990540,"minLength":1,"pattern":"^data:image/(png|jpeg|webp|gif);base64,[A-Za-z0-9+/]+={0,2}$","type":"string"}],"description":"Public HTTPS image URL or a base64 data URI containing a PNG, JPEG, WebP, or GIF image."}},"required":["url"],"type":"object"},"text":{"type":"string"},"type":{"enum":["text","image_url"],"type":"string"}},"required":["type"],"type":"object"},"minItems":1,"type":"array"}]},"name":{"minLength":1,"type":"string"},"reasoning_content":{"type":"string"},"role":{"enum":["system","user"],"type":"string"},"tool_call_id":{"minLength":1,"type":"string"},"tool_calls":{"items":{"additionalProperties":false,"properties":{"function":{"additionalProperties":false,"properties":{"arguments":{"type":"string"},"name":{"minLength":1,"type":"string"}},"required":["name","arguments"],"type":"object"},"id":{"minLength":1,"type":"string"},"type":{"const":"function","type":"string"}},"required":["id","type","function"],"type":"object"},"minItems":1,"type":"array"}},"required":["role"],"type":"object"},"maxItems":16,"minItems":1,"type":"array"},"model":{"enum":["moonshotai/kimi-k3","Qwen/Qwen3.6-35B-A3B","zai-org/GLM-5.2","zai-org/GLM-5.3","zai-org/GLM-5.3-Flash","Qwen/Qwen3.8-27B","deepseek-ai/DeepSeek-V4.1-Flash"],"type":"string"},"reasoning_effort":{"enum":["low","high","max"],"type":"string"},"stream":{"const":false,"type":"boolean"},"temperature":{"maximum":2,"minimum":0,"type":"number"}},"required":["model","messages","max_tokens","stream"],"type":"object"},"maxItems":21,"minItems":1,"type":"array"}},"required":["requests"],"type":"object"},"type":{"type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-18","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":1566,"error":null}],"description_full":"Converts one natural-language task into validated OpenAI-compatible JSON request bodies for multiple open-weight models. Uses the optional models list when supplied; otherwise uses all catalogue models compatible with the input. Supports text, visual input, and model-supported reasoning levels. Returns JSON request bodies only and does not execute inference.","last_updated":"2026-10-16T22:51:03.934Z","schemes":["exact"]}