Builds

Asks the build agent to build something

The build is queued and runs in the background; GET /builds/{id} follows it. The prompt is logged in full, so the operator knows what people ask for - put nothing into it that should not be read. It is cut past 2000 characters.

post/builds/

Request

  • Base URL: https://genhttp.dev/api/v1
  • URL: https://genhttp.dev/api/v1/builds/
  • Auth: none declared

Request body

Promptstring nullable

What to build, in the words of whoever wants it, in any language - at least three characters, cut past 2000

Modelstring nullable

Which of the offered models builds it: left out or opus for the default one, fable for the second, where one is offered

Passwordstring nullable

The password for the second model

Response

The build was taken on. Follow it by its id.

Idstring

What to follow it by: GET /builds/{id}

Queuedinteger

How many builds are waiting ahead of it

Changes

No recorded changes to this operation across all 1 revision of this API.