Quickstart Guide

Get your first SmileGeni 2D API call working in under 5 minutes. This guide walks you through authentication and submitting your first image for processing.

Prerequisites

  • A SmileGeni API key (format: sk-prod-...). Request an API key if you don't have one yet.
  • A tool for making HTTP requests: cURL, Postman, or any HTTP client library.
  • An image file to process (PNG, JPG, JPEG, GIF, BMP, or WEBP format).
Need an API Key?

To get started, you'll need a SmileGeni API key. Send us an email and we'll get you set up within 24 hours.

Base URL

All API requests are made to the following base URL:

https://eu.api.smilegeni.ai
Regional Endpoints

The API is hosted in the EU (Frankfurt) region. All data is processed in this region. Additional regions may be available in the future.

Step 1: Authenticate

All requests require a Bearer token in the Authorization header:

Authorization: Bearer YOUR_API_KEY
Keep Your Key Secure

Never expose your API key in client-side code or public repositories. Store it in environment variables or a secrets manager.

Step 2: Send Your First Request

Submit an image using a POST request to /process_image with the image as multipart form-data:

1curl -X POST "https://eu.api.smilegeni.ai/process_image" \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -F "image=@photo.jpg" \
4 -F "AI-Strength=3"

Step 3: Handle the Response

On success, the API returns the processed image directly as binary data in the response body. The response content type will match the output image format.

Success Response

  • Status: 200 OK
  • Body: Processed image binary data
  • Content-Type: Image MIME type (e.g., image/png)

Error Responses

Status CodeMeaning
401Invalid or missing API key
400Invalid request (missing image, bad parameters)
413Image file too large
500Server processing error

Next Steps