DeepInfra
communityServerless AI inference platform for open-source models with pay-per-token pricing.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
POST
https://api.deepinfra.com/v1/openai/chat/completionsChat completion
Parameters
modelmodel ID (stringrequiredmessagesmessages (object[]requiredmax_tokensmax tokens (integeroptionaltemperaturetemperature (numberoptionalReturns
choices[] with message.content, finish_reason; usageGET
https://api.deepinfra.com/v1/openai/modelsList models
Returns
data[] with id, owned_by, task_type, pricingPOST
https://api.deepinfra.com/v1/inference/{model}Generate image
Parameters
modelmodel ID (stringrequiredwidthwidth (integeroptionalheightheight (integeroptionalprompttext prompt (stringrequiredReturns
images[] with url, seed