Ask
Changed onOne question about a world, answered from the elements the client sends (the ones its own search found, as text), by a model the platform pays for and meters against the account's daily token rating. Body: world_id, question, context (a list of elements as text). The model answers only from the context and says so when it does not hold the answer. An account credential (Bearer ow_a_, a signed-in session, or a phone's X-Session-Token).
Request
- Base URLhttps://www.onlyworlds.com
- Auth
- HTTP bearer
- or API key in header X-Session-Token
Headers
The client's own name for itself (atlas, lantern, sdk): lower case letters, digits and hyphens, 1 to 32 characters, after a trim. It is stored on the element as changed_client (a delete's tombstone as deleted_client), beside the door; it changes no door and no permission. A value outside the rule is ignored (stored as null), never refused.
Request body
A world this account owns or is a member of.
One element as text per item, 12000 characters in all.
Response
The answer: answer (text; "The world doesn't say." when the elements do not hold it), model, stop_reason, usage {input_tokens, output_tokens}, remaining (how many more calls of this one's size fit in what this account has left today), tokens_remaining (the account's tokens left today after this call), token_rating (the account's daily token rating) and paid_by (rating, or own_key when today's rating was spent and the call ran on the account's own AI key; the rating's fields are then as they were).
How many more calls of this one's size fit in what this account has left today.
The account's tokens left today after this call.
The account's daily token rating.
Who paid for this call: rating, the account's daily token rating on the platform's key; own_key, the account's own AI key, once today's rating was spent (the rating's fields above are then as they were).
Changes
- info
added the new optional
headerrequest parameterX-OW-Client
- info
- info
added the optional property
error/limitto the response with the status - info
added the optional property
error/limitto the response with the status
5 more changes in this revision
- info