arazzo: 1.0.1
info:
title: Discover and run a Bytez model
version: 1.0.0
summary: List models for a task, pick one, and run serverless inference.
x-realizes-capability-ids:
- BC-610.60
x-capability-derivation:
method: 'deterministic join: sourceDescriptions -> per-tag OpenAPI -> tag/capability edge. No classification at this step.'
min_confidence: 0.7
sources:
- capability_id: BC-610.60
capability_name: Artificial Intelligence Management
spec: bytez-models-api-openapi.yml
confidence: 0.75
model: Turbo EA Capabilities by Vincent Verdet — Turbo EA, https://github.com/vincentmakes/turbo-ea-capabilities, CC BY 4.0
sourceDescriptions:
- name: modelsApi
url: ../openapi/bytez-models-api-openapi.yml
type: openapi
workflows:
- workflowId: discoverAndRunModel
summary: Find a chat model via getModels then run it with runModel.
description: >-
Lists available models for a task, selects the first model id, then runs an
inference request against it and returns the model output.
inputs:
type: object
properties:
task:
type: string
default: chat
text:
type: string
default: Hello from API Evangelist
steps:
- stepId: listModels
description: Retrieve models available for the requested task.
operationId: getModels
parameters:
- name: task
in: query
value: $inputs.task
successCriteria:
- condition: $statusCode == 200
outputs:
firstModelId: $response.body#/output/0/modelId
- stepId: runModel
description: Run inference on the selected model.
operationId: runModel
parameters:
- name: modelId
in: path
value: $steps.listModels.outputs.firstModelId
requestBody:
contentType: application/json
payload:
text: $inputs.text
successCriteria:
- condition: $statusCode == 200
outputs:
result: $response.body#/output
outputs:
modelId: $steps.listModels.outputs.firstModelId
result: $steps.runModel.outputs.result
Discovery needs no key. Ratings and market analysis are Pro.
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. See our Privacy Policy and
Terms.