https://openrouter.ai/api/v1/models/:author/:slug/endpoints
The listed fields in the response for this api endpoint are incorrect.
See photo of docs vs. actual call to the endpoint:
- doc says
endpoints.pricingshould be an object with 4 properties (request, image, prompt, completion) - real calls have different shape, as shown in image and below:
Get at endpoint: https://openrouter.ai/api/v1/models/deepseek/deepseek-chat-v3.1/endpoints
"pricing": {
"prompt": "0.0000002",
"completion": "0.0000008",
"request": "0",
"image": "0",
"image_output": "0",
"web_search": "0",
"internal_reasoning": "0",
"discount": 0
},
Docs reference: https://openrouter.ai/docs/api-reference/list-endpoints-for-a-model