Skip to Content
NoCam API

MCP tools

Every tool the MCP server gives an agent.

Every tool here has the same money, limits and rules as REST. See Connect through MCP for how to set it up.

list_models

Lists the models on sale: what each costs in credits (1 credit = $0.01), how long it usually takes and how often it succeeds.

Read-only.

FieldTakesWhat it is
kindimage, video, textOnly this kind of model.

get_model

A model's options and prices. Use it before generate: the options differ from model to model.

Read-only.

FieldTakesWhat it is
model (required)stringThe model id from list_models.

estimate_cost

Checks the options and says what a generation would cost. Nothing runs and nothing is charged.

Read-only.

FieldTakesWhat it is
model (required)stringThe model id from list_models.
prompt (required)stringWhat to make. Refer to files by order: img1, img2, video1, audio1.
imagesarrayPhotos: file ids from upload_media or create_upload, or public https addresses.
videosarrayVideos, the same way.
audiosarrayAudio, the same way.
aspect_ratiostring
resolutionstring
qualitystring
durationintegerClip length in seconds.
reference_modeframes, ingredients, start
output_formatpng, jpeg

generate

Makes a photo, a video or text and spends credits. Photos and text are usually back in the answer; videos take minutes, so this returns an id to check with get_generation. Never call it again to check progress.

Changes something.

FieldTakesWhat it is
model (required)stringThe model id from list_models.
prompt (required)stringWhat to make. Refer to files by order: img1, img2, video1, audio1.
imagesarrayPhotos: file ids from upload_media or create_upload, or public https addresses.
videosarrayVideos, the same way.
audiosarrayAudio, the same way.
aspect_ratiostring
resolutionstring
qualitystring
durationintegerClip length in seconds.
reference_modeframes, ingredients, start
output_formatpng, jpeg
run_againbooleanMake another one from exactly the same request. Without it, the same request within 10 minutes returns the same generation, unless that one failed or was deleted.

get_generation

Status and result of a generation. Use it to check on one that was still working.

Read-only.

FieldTakesWhat it is
id (required)stringThe id from generate.

list_generations

Earlier generations, newest first, to find a result or use it as a file in a new one.

Read-only.

FieldTakesWhat it is
statusqueued, running, succeeded, failed, canceled
modelstring
cursorstring
limitinteger

cancel_generation

Cancels a generation still in the queue and gives the credits back. Once a model has it, it finishes and is billed.

Changes or removes something.

FieldTakesWhat it is
id (required)string

delete_generation

Removes a finished generation's files and prompt now, without waiting for them to expire.

Changes or removes something.

FieldTakesWhat it is
id (required)string

upload_media

Puts a photo, video or audio file into storage from a public https address, or from base64 up to 4 MB, and returns a file id for generate. Use only files you have the right to use.

Changes something.

FieldTakesWhat it is
urlstringA public https address.
data_base64stringThe file itself, base64, up to 4 MB.

create_upload

A link to PUT a local file to, for agents that can run commands. Returns a ready curl command; the file id works in generate once the file is there.

Changes something.

FieldTakesWhat it is
content_type (required)stringimage/png, image/jpeg, image/webp, video/mp4, video/quicktime, audio/mpeg or audio/wav.
bytes (required)integerThe file's size.

get_account

The balance, the limits of this connection and where to top up. Never top up on your own: send the person to the link.

Read-only.

No fields.

On this page