Skip to main content
Point the official Google Gen AI SDK at apisale. Paths under /v1beta/models match Google’s API layout.

Install

Configure client

Use your apisale key (sk-...) as apiKey.
If your SDK version only supports API key header, set apiKey to your apisale key. For raw REST, use Authorization: Bearer $APISALE_API_KEY.

List models

REST:

Generate images (sync)

With a reference image (image-to-image), include image parts in contents per Gemini SDK docs — apisale detects image input and routes to image-to-image.

Generate video (async)

Video models (veo-3.1, etc.) return a job-style response. Poll using the operation/run id returned in the response until complete.
REST: POST /v1beta/models/{model}:generateContent apisale maps:

curl example

Python