NAV
KittensAI.com
shell python php javascript

Introduction

Welcome to the KittensAI.com platform API!

Each feature is designed to help our users more easily create kitten images with AI on KittensAI.com"s system.

To get your API key please go to account page.

Default Base URL

The default base URL for KittensAI.com API is: https://api.kittensai.com/v1/

Note: for security reasons, all KittensAI.com APIs are served over HTTPS only.

Authorization

To use the KittensAI.com API, you’ll need the API key that is linked to your account.

The authorization value should be send in Headers request.

Authorization: <api_key>

Create images

Copy to Clipboard
Create image curl -X POST \ https://api.kittensai.com/v1/create-kitten/ \ -H 'Authorization: api_key' \ -H 'Content-Type: application/json' \ -d '{ "terms": "rabbit going to school, ignorant style tattoo art", "is_sfw": true, "negative_terms": "duplicate, poorly drawn face, morbid, poorly drawn fingers, ugly, blurry, cartoon, disney, out of frame, cropped", "dimension": "landscape", "fix_faces": true, "make_tile": false, "upscale": false, "threesixty": false }' Get created image URL curl -X POST \ https://api.kittensai.com/v1/results/ \ -F 'uuid=response_uuid'

Reponse

Copy to Clipboard
/path/to/local/result.jpg

HTTP Request

POST /create-kitten/

Query Parameters

Parameter Type Description Example
is_sfw Optional Set "true" if the "terms" are for adult image content true or false
terms Required Tell the AI what image do you want to create. rabbit going to school, ignorant style tattoo art
negative_terms Optional Tell the AI what should be excluded. duplicate, poorly drawn face, morbid, poorly drawn fingers, ugly, blurry, cartoon, disney, out of frame, cropped
dimension Optional Get portrait or landscape images, "portrait" value is default if empty or null. portrait or landscape
fix_faces Optional Let the AI to fix faces in the result images, False value is default if not send. true or false
make_tile Optional Set True if you want an image that can be used as pattern. true or false
upscale Optional The AI will return a bigger scaled up image. true or false
threesixty Optional The AI will return a 360º image. true or false