API Reference

Generate chat completion

Description

Interact with the LLM model using a chat completions interface. The LLM model will respond with an assistant message.

{
    "model": "gpt-4o",
    "messages": [
        { "role": "system", "content": "You are a name generator. Do not generate anything else than names" },
        { "role": "user", "content": "Generate 5 names" },
    ]
}
Language
Credentials
Header
Click Try It! to start a request and see the response here!