API Documentation

Everything you need to build with ai's cutting-edge models and tools. Our APIs are free to use and include robust features for content generation, code writing, and data analysis.

Get Started

Quick Start Guide

Authentication


curl "https://api.ai-toolkit.com/v1/generate" \
  -H "Authorization: Bearer YOUR_API_KEY"

                        

Replace YOUR_API_KEY with the key from your Dashboard.

Generate Text


curl "https://api.ai-toolkit.com/v1/generate" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{"prompt":"Explain machine learning in simple terms"}'

                        

Generates a human-like explanation of machine learning.

Analyze Data


curl "https://api.ai-toolkit.com/v1/analyze" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F "file=@data.csv"

                        

Upload and analyze a CSV file with insights generated automatically.

Core Features

  • Text Generation
  • Code Writing
  • Image Generation
  • Data Analysis
  • Model Training
  • Available Endpoints
    • /api/v1/generate
    • /api/v1/analyze
    • /api/v1/train
    • /api/v1/validate

    Free tier available with rate limits and premium features unlocked with API credits.

API Endpoints

/api/v1/generate

Generate text based on input prompts. Ideal for creative writing, documentation, or business content creation.

Parameters

prompt

The input text that guides the generation. Required.

temperature

Controls randomness (0.3 is standard, higher = more creative, lower = more focused).

max_tokens

Maximum number of tokens to generate (default: 500, max: 4096).

language

Language code for output (e.g., "en", "es", "zh").

Sample Response


{
  "text": "Machine learning is a type of artificial intelligence that enables systems to automatically learn and improve with experience, without being explicitly programmed.",
  "usage": {
    "tokens": 217
  }
}

                

Rate Limits

Free

100 calls/day

Pro

5000 calls/day

Enterprise

Unlimited

/api/v1/analyze

Upload datasets for analysis including correlation detection, pattern recognition, and visualization suggestions.

Parameters

file

CSV, JSON, or XLSX file.

analysis_type

Desired analysis (e.g., "correlation", "outliers").

Sample Response


{
  "analysis": {
    "top_correlations": [
      {"features": ["age", "income"], "score": 0.82}
    ],
    "insights": [
      "Age and income show strong positive correlation"
    ]
  }
}

                

Start Building with Our API

Ready to integrate our API into your project? Create your API key here and start using our powerful tools immediately.