API reference, AI

AI job stream

A Femtos AI job of your account as it runs: the answer as it is written, each data call, then the answer.

  • No data on Elysium yet: a job of your own account: POST /v1/ai/jobs first
  • No data on HyperCore yet: a job of your own account: POST /v1/ai/jobs first

WebSocket channel ai.job on wss://api.femtos.xyz/v1/ws

Parameters

ParamInExample or valuesMeaning
idfilter(optional)A job id of your account (POST /v1/ai/jobs)

Subscribe

Elysium, HyperCore

{"op":"subscribe","channel":"ai.job","filter":{}}

Key: Authorization: Bearer $FEMTOS_KEY. Get a free key, or with no browser through agent onboarding.

Response fields

FieldTypeMeaning
snapshot: trueAiJobthe job as it is at subscribe (GET /v1/ai/jobs/{id})
dataAiJobEventeach event of the job until its end: delta (text), tool (a data call), then done or failed: {type, content, tool, args, ok, request, result, error}

Related: AI

  • AI models and prices GET /v1/ai/models Elysium, HyperCore
    The models Femtos AI answers with, and the USD price per million tokens of each (OpenRouter's x 1.25).

More

Agent guide (agents.md)llms.txtOpenAPIMCP serverGet an API keyChangelog