generate_text
Generate AI text responses using language models, analyze images with vision capabilities, and process file content for contextual understanding.
Instructions
Generate text using AI language models. Supports file attachments (fileContext for extracted text) and image analysis (imageBase64 for vision, Best/K2.5 model only). Requires a valid paid payment ID.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| paymentId | Yes | Valid payment ID (must be paid) | |
| prompt | Yes | The text prompt or question | |
| modelId | Yes | The AI model database ID | |
| systemPrompt | No | Optional system prompt | |
| maxTokens | No | Maximum tokens in response | |
| fileContext | No | Extracted text from a file (PDF, DOCX, code, etc.) to include as context | |
| fileName | No | Name of the attached file | |
| imageBase64 | No | Base64 data URI of an image for vision analysis (Best/K2.5 model only) |