Community Models

Test My Model Endpoint

Test an upstream model before registering it. Text tests call the selected Chat Completions or Responses URL in JSON and streaming modes; both must return valid token usage, except that an endpoint without SSE (a JSON reply or a 400/422 to stream: true) passes with streaming: false and is registered with advertised.streaming: false. Image tests detect the image pricing mode and probe the derived /images/edits endpoint; video tests call the exact configured URL and validate completed MP4 data; speech tests send a short sample and accept a valid binary audio response. Limited to one probe every 30 seconds per account. API keys require account:keys.

post/account/my-models/test

Request

  • Base URL: https://gen.pollinations.ai
  • URL: https://gen.pollinations.ai/account/my-models/test
  • Auth: HTTP bearer

Request body

OR

Response

Endpoint test result

okboolean required
messagestring required
usageobject required

Raw provider usage, or { images: 1 } when an image provider returns no token usage.

billableUsageobject required

Normalized billable usage fields used to reveal applicable prices.

imagePricing'request' | 'tokens'

Image tests only: pricing mode detected from the provider response.

imageEditErrorstring

Image tests only: edit-test failure details. Generation succeeded; this does not establish that editing is unsupported.

inputModalitiesstring[]

Image tests only: input types detected from generation and edit probes.

streamingfalse

Text tests only: the endpoint answered stream: false but sent no SSE. Register it with advertised.streaming: false.

streamingErrorstring

Text tests only: why the streaming request found no SSE.

Changes

No recorded changes to this operation across all 1 revision of this API.