Quickstart
Run Inference (POST) - Execute a ModelEndpoint: POST/models/v2/openai-community/{model}Purpose: Run inference on an open-source model.
Request Body
Response
Unified Input Formats
Why Standardization?
- Reduces integration complexity.
- Enables task/provider switching without reformatting inputs.
Input Schemas
Text
For models that processtext:
json
fill-mask, summarization, text-to-speech, translation, text-generation
Messages
Forchat, audio-text-to-text, image-text-to-text, and video-text-to-text tasks:
json
chat, audio-text-to-text, image-text-to-text, and video-text-to-text
Image
For image processing, use either:URL:
json
Base64:
json
image-classification, object-detection, image-to-Text.
Multi-Input
For models needing bothtext and image or audio or video:
json
visual-question-answering, zero-shot-classification, etc.
This unified schema accelerates development and ensures compatibility across diverse AI tasks.