OpenAI
communityAI research lab providing GPT models, DALL-E, and AI APIs
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.openai.com/v1/chat/completionsGenerate text with GPT models
Parameters
modelmodel name (stringrequiredmessagesconversation (arrayrequiredReturns
choices[] with message {role, content}, usagePOST
https://api.openai.com/v1/images/generationsGenerate images with DALL-E
Parameters
sizedimensions (stringoptionalpromptdescription (stringrequiredReturns
data[] with url, revised_promptPOST
https://api.openai.com/v1/embeddingsGenerate text embeddings
Parameters
inputtext (stringrequiredmodelmodel name (stringrequiredReturns
data[] with embedding[], usage