External calls
Public testnet programs run as WASM. Usegora.http_get to read an allowed
HTTP endpoint and gora.llm_json to request schema-validated AI output.
JavaScript in your frontend can fetch ordinary browser resources, but it does
not execute as a Gora validator program or obtain the model provider’s key.
Read HTTP data
Declare the capability ingora.app.json:
fetch implementation: arbitrary
request headers, POST bodies, sockets and streaming are not part of this ABI.
Never put secrets in URL query strings, app configuration or published bundles.
See the runtime reference for exact signatures.
Request structured AI
Usegora.llm_json(ptr, len, out_ptr, out_cap) with JSON containing
instructions, prompt, an object-root schema and an optional
max_completion_tokens. The managed host supplies its configured provider,
model and server-side credential. An app cannot substitute its own endpoint
or retrieve that credential through the call.
The public testnet requires prepaid test GORA from the first provider attempt.
The current price is one test GORA per dispatched attempt, including provider
errors. Replaying an already captured result does not buy another call. See
AI credits for billing, structured-output examples and
original-payment recovery. Obtain informed permission before sharing user
inputs/state with the model provider; payment or wallet connection is not
AI-sharing consent.