Trigger your Fetch Hive Prompts via endpoints.
Last updated 2 months ago
Was this helpful?
Trigger a prompt to run
Summarize scraped website
production
curl -L \ --request POST \ --url 'https://api.fetchhive.com/v1/invoke' \ --header 'Authorization: YOUR_API_KEY' \ --header 'Content-Type: application/json' \ --data '{ "endpoint": "Summarize scraped website", "variant": "production", "inputs": { "first_input": "text", "second_input": "text" }, "streaming": true }'
{ "model": "text", "usage": { "prompt_tokens": 1, "completion_tokens": 1 }, "duration": 1, "output": "text", "version_token": "text", "endpoint_token": "text" }