Generate text responses using advanced language models
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
model | string | ✅ Yes | gpt-4.1 | The model to use for the request |
input | array | ✅ Yes | - | Array of message objects with role and content. Each message contains: - role: “user” or “assistant” - content: Array of content objects with the following type: - input_text: Text input with text field containing your prompt or message Example: json [ { "role": "user", "content": [ { "type": "input_text", "text": "Hello, how can you help me today?" } ] } ] |
stream | boolean | ❌ No | false | Whether to stream the response |