GET
/
generations
Authorization
Query
curl --request GET \
  --url https://api.honeyhive.ai/generations \
  --header 'Authorization: <authorization>'
[
  {
    "completion_tokens": 123,
    "cost": 123,
    "feedback": {},
    "generation": "<string>",
    "generation_id": "<string>",
    "hyperparameters": {},
    "latency": 123,
    "model": "<string>",
    "source": "<string>",
    "task": "<string>",
    "total_tokens": 123,
    "version": "<string>"
  }
]

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

task
string
prompt
string
model_id
string

Response

200 - application/json
completion_tokens
integer

The number of tokens generated for the completion

cost
number

The cost of the generation

feedback
object

The feedback associated with this generation

generation
string

The generated completion

generation_id
string

The unique ID of the generation

hyperparameters
object

The hyperparameters that were used to generate the text

latency
number

The latency of the generation in milliseconds

model
string

The model that was used to generate the text

source
string

The source of the generation

task
string

The task for which the generation is being requested

total_tokens
integer

The total number of tokens generated

version
string

The unique ID of the prompt