chat.completions.create()
Create AI chat completions with streaming support.Parameters
model(string, required) - AI model (e.g., ‘anthropic/claude-3.5-haiku’, ‘openai/gpt-4’), callmcp__insforge__get-backend-metadatatool to get available modelsmessages(array, required) - Array of message objects:{role: "user"|"system"|"assistant", content: string}temperature(number, optional) - Sampling temperature 0-2maxTokens(number, optional) - Max tokens to generatetopP(number, optional) - Top-p sampling 0-1stream(boolean, optional) - Enable streaming mode
Returns (non-streaming)
Returns (streaming)
Example (non-streaming)
Output (non-streaming)
Example (streaming)
Output (streaming)
images.generate()
Generate images using AI models.Parameters
model(string, required) - Image model (e.g., ‘google/gemini-2.5-flash-image-preview’)prompt(string, required) - Text description of imageimages(array, optional) - Input images for image-to-image (url or base64)width(number, optional) - Image width in pixelsheight(number, optional) - Image height in pixelssize(string, optional) - Predefined size (‘1024x1024’, ‘512x512’)numImages(number, optional) - Number of images to generatequality(‘standard’ | ‘hd’, optional) - Image qualitystyle(‘vivid’ | ‘natural’, optional) - Image style