Good to know: A quick start guide can be good to help folks get up and running with your API in a few steps. Some people prefer diving in with the basics rather than meticulously reading every page of documentation!
Get your API keys
Your API requests are authenticated using API keys. Any request that doesn't include an API key will return an error.
You can generate an API key from your Dashboard at any time.
Make your first request
To make your first request, send an authenticated request to the generate endpoint. This will create a generations, which is nice.
{"message": "API key does not exist","errorCode": 5001,"statusCode": 403,"path": "/v1/generations","error": true,"method": "POST"}
Take a look at how you might call this method using our official libraries, or via node:
// require the axios module and set it up with your API keyconstaxios=require('axios').default;consturl='https://api.crazyhorse.ai/v1/generations';constpayload= { params: {"hair":"red","pose":"","body":"","chest":"","clothes":"t-shirt, jean","background":"ocean","number":10,"girlId":"yuna-jp","loraId":"115728","debug":true }, image: '/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAkGBxISEhUTEBIVFRUVFRUVFRUVFRUVFRYVFxcXFxUVFRUYHSggGBolHRUVITEhJSkrLi4uFx8zODMsNygtLisBCgoKDg0OGhAQGy0dHx0tLS0tLS0tLSstLS0tLS0tLSstKy0xLS0tKy0rLS0tLS0tKy0rKy0tLS0tLS0tLS0tLf/AABEIARMAtwMBIgACEQEDEQH/xAAcAAABBQEBAQAAAAAAAAAAAAAEAQIDBQYABwj/xAA/EAABAwIDBQUFBQgBBQEAAAABAAIRAyEEBTESQVFxgQYTImGRMqGxwdEHQlJichQjgpKy4fDxwhUzU5OiJP/EABkBAAMBAQEAAAAAAAAAAAAAAAABAgMEBf/EACERAQEAAgMAAgIDAAAAAAAAAAABAhEDITESQTJRBHHB/9oADAMBAAIRAxEAPwDSU/Y6KJgUwHg6KNgWSxdIWRYCHpDRFDR'
};constoptions= { headers: {'api-key':'xxxxxxxx' }};constgenImage= away axios.post(url, payload, options)