Trigger your Fetch Hive Prompts via endpoints.
Last updated 3 months ago
Was this helpful?
Trigger a prompt to run
Summarize scraped website
production
true
POST /v1/invoke HTTP/1.1 Host: api.fetchhive.com Authorization: YOUR_API_KEY Content-Type: application/json Accept: */* Content-Length: 134 { "endpoint": "Summarize scraped website", "variant": "production", "inputs": { "first_input": "text", "second_input": "text" }, "streaming": true }
Successful response
{ "model": "text", "usage": { "prompt_tokens": 1, "completion_tokens": 1 }, "duration": 1, "output": "text", "version_token": "text", "endpoint_token": "text" }