The AI role the call runs as: one of the caller's role ids (GET /v1/ai/roles), or for an app a role it declares in its aimeat-ai meta and the owner bound. Its providers and models for the capability come first, in its order. A named `model` or `provider` wins over it. Refused 400 INVALID_BODY when it is not a string of 1 to 300 characters; AI_ROLE_UNKNOWN, AI_ROLE_NOT_DECLARED, AI_ROLE_LACKS_CAPABILITY (400) and AI_ROLE_NOT_BOUND (409) as on POST /v1/ai/complete.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/aimeat-io/json-schema/aimeat-io-ai-call-role-schema.json",
"title": "AiCallRole",
"description": "The AI role the call runs as: one of the caller's role ids (GET /v1/ai/roles), or for an app a role it declares in its aimeat-ai meta and the owner bound. Its providers and models for the capability come first, in its order. A named `model` or `provider` wins over it. Refused 400 INVALID_BODY when it is not a string of 1 to 300 characters; AI_ROLE_UNKNOWN, AI_ROLE_NOT_DECLARED, AI_ROLE_LACKS_CAPABILITY (400) and AI_ROLE_NOT_BOUND (409) as on POST /v1/ai/complete.",
"x-generated": "2026-11-10",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/aimeat-io-ai-api-openapi.yml#/components/schemas/AiCallRole",
"type": "string",
"minLength": 1,
"maxLength": 300
}
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.