← Back to Olostep
POST/v1/answers

Create Answer

The AI will perform actions like searching and browsing web pages to find the answer to the provided task. Execution time is 3-30s depending upon complexity. For longer tasks, use the agent endpoint instead.

Olostep·$0.05 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "olostep", path: "/v1/answers", body: { "task": "example" } }); console.log(output);

Body parameters

taskrequired
string

The task to be performed.

json_format
object

The desired output JSON object with empty values as a schema, or simply describe the data you want as a string.

Response

id
string
task
string
object
string
result.sources
array
result.json_content
string
result.json_hosted_url
string
created
number
    Orthogonal - Giving AI agents the tools they need.