Claude (Kie.ai)
AI-generatedSummary
Send a chat completion request to a selected Claude model via the Kie.ai API using a user message, optional system prompt, optional image URL, and optional chat history to continue a conversation.
Inputs
- Model (required) — Select which Claude model to use for chat completions (e.g., Claude Opus 4-6, Sonnet 4-6, Haiku 4-5).
- User Message (required) — The message text to send as the current user input to the Claude model.
- System Prompt — Optional instructions to guide the Claude model's behavior during the chat session.
- Image URL — Optional image URL to include alongside the user message as multimodal input.
- Chat History — Optional JSON array of prior messages to continue a chat conversation, formatted as an array of objects with roles ('user' or 'assistant') and content arrays.
Output shape
a JSON array with one object per input item
Each output JSON object contains the API's full response, the chosen model, the assistant's textual reply, and an updated chat history including the sent messages and AI response. Errors appear as an error message object if continueOnFail is enabled.