FAIGEN
INTELLIGENCE CORE
Docs
FAIGEN_CORE / ONLINE
Faigen AI Documentation — Intelligence Core
FAIGEN AI INTELLIGENCE CORE
FAIGEN_CORE / ONLINE
FAIGEN AI / INTELLIGENCE CORE

Intelligence infrastructure
for applications.

Generate, translate, optimise and transform content through the Faigen Intelligence Core API. Build AI capabilities directly into your applications without coupling your product to a single communication platform.

01 / GETTING STARTED

Quick Start

A Faigen request follows a simple intelligence pipeline: authenticate, describe the operation, provide the content, receive the processed result.

01

Create an API key

Generate a private Faigen credential from your developer dashboard.

02

Send a request

Call the Intelligence Core API with your desired operation and content.

03

Process

Faigen processes the request through the selected intelligence capability.

04

Consume the result

Your application receives structured output and continues its own workflow.

JSON
{
  "action": "translate",
  "language": "fr",
  "content": "Hello from Faigen"
}
02 / PLATFORM

Architecture

Faigen is the intelligence layer. Applications remain responsible for their own users, permissions, workflows and business logic.

01
Application Your product or service
02
API Authenticated request
03
Faigen Core Intelligence processing
04
Result Structured AI output
03 / AI ENGINE

Text Generation

Generate new content from structured instructions and application-provided context.

JSON
{
  "action": "generate",
  "prompt": "Write a concise welcome message for a new customer.",
  "context": {
    "tone": "professional",
    "channel": "email"
  }
}
04 / AI ENGINE

Translation

Translate application content into a requested target language while preserving the intended communication context.

JSON
{
  "action": "translate",
  "language": "fr",
  "content": "Hello from Faigen"
}
Language-aware processing Translation can be used as an independent API operation or as part of a larger application workflow.
05 / AI ENGINE

Optimisation

Submit existing content for refinement, restructuring, clarity improvements or communication optimisation.

Clarity

Improve readability and communication structure.

Tone

Adapt content to an application-defined tone.

Context

Optimise content for a specified communication environment.

+

Variations

Create alternative versions for testing and application workflows.

JSON
{
  "action": "optimise",
  "content": "Your original content",
  "context": {
    "tone": "professional",
    "channel": "email"
  }
}
06 / AI ENGINE

Detection

Detect properties of supplied content before deciding which intelligence operation your application should run.

JSON
{
  "action": "detect",
  "content": "Bonjour, comment allez-vous ?"
}
07 / AI ENGINE

Variants

Generate alternative versions of existing content for testing, personalisation or application workflows.

JSON
{
  "action": "variants",
  "count": 3,
  "content": "Welcome to our service.",
  "context": {
    "tone": "professional"
  }
}
08 / AI ENGINE

Structured Output

Applications can request machine-readable output when AI results need to be consumed directly by software.

JSON
{
  "action": "generate",
  "prompt": "Create a customer profile summary.",
  "output": {
    "type": "object",
    "fields": {
      "summary": "string",
      "sentiment": "string",
      "priority": "string"
    }
  }
}
09 / DEVELOPER

Authentication

Authenticate API requests using a private Faigen API key. Credentials should remain server-side.

HTTP
Authorization: Bearer YOUR_FAIGEN_API_KEY
Content-Type: application/json
!
Never expose private API keys Do not place secret credentials inside browser JavaScript, HTML, public repositories or client-side application bundles.
10 / DEVELOPER

API Reference

The Faigen Intelligence Core API provides a unified interface for AI operations.

POST /api/v1/intelligence

Supported operations

Action Purpose Content
generate Generate new content. Optional
translate Translate supplied content. Required
optimise Improve existing content. Required
detect Analyse supplied content. Required
variants Generate alternative versions. Required
11 / DEVELOPER

Requests

Requests are JSON objects containing an action and the information required by that operation.

REQUEST
{
  "action": "translate",
  "language": "de",
  "content": "Hello from Faigen",
  "request_id": "req_123456"
}
Field Type Required Description
action string Yes AI operation.
content string/object Depends Input supplied to Faigen.
language string Depends Target language.
context object No Application context.
request_id string Recommended Application correlation identifier.
12 / DEVELOPER

Responses

Successful operations return a structured response containing the operation and processed result.

JSON
{
  "success": true,
  "request_id": "req_123456",
  "action": "translate",
  "result": "Bonjour de Faigen",
  "usage": {
    "tokens": 12
  }
}
13 / SDK EXAMPLES

PHP

Example server-side integration using PHP and cURL.

PHP
<?php

$payload = array(

    'action' => 'translate',

    'language' => 'fr',

    'content' =>
        'Hello from my application',

    'request_id' =>
        'req_' . bin2hex(
            random_bytes(8)
        )
);

$ch = curl_init(
    'https://faigen.live/api/v1/intelligence'
);

curl_setopt_array(
    $ch,
    array(

        CURLOPT_POST => true,

        CURLOPT_RETURNTRANSFER => true,

        CURLOPT_HTTPHEADER => array(

            'Authorization: Bearer ' .
                getenv('FAIGEN_API_KEY'),

            'Content-Type: application/json'
        ),

        CURLOPT_POSTFIELDS =>
            json_encode($payload)
    )
);

$response = curl_exec($ch);

curl_close($ch);

$result = json_decode(
    $response,
    true
);

print_r($result);
14 / SDK EXAMPLES

JavaScript

For browser applications, route private API requests through your own backend rather than exposing your Faigen credential.

JAVASCRIPT
const response = await fetch(
    '/your-backend/faigen',
    {
        method: 'POST',

        headers: {
            'Content-Type':
                'application/json'
        },

        body: JSON.stringify({

            action: 'translate',

            language: 'fr',

            content:
                'Hello from my application'
        })
    }
);

const data =
    await response.json();

if (data.success) {

    console.log(
        data.result
    );
}
15 / SDK EXAMPLES

cURL

BASH
curl -X POST \
  https://faigen.live/api/v1/intelligence \
  -H "Authorization: Bearer YOUR_FAIGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action": "translate",
    "language": "fr",
    "content": "Hello from Faigen"
  }'
16 / PLATFORM

API Keys

API keys identify applications and authorise access to Faigen services.

Private keys

Keep production credentials on trusted server-side infrastructure.

Rotate credentials

Replace credentials when they may have been exposed or compromised.

17 / PLATFORM

Usage

Faigen usage can be associated with individual API requests and application activity.

Track request usage Use request identifiers and returned usage information to correlate application activity with Faigen processing.
18 / PLATFORM

Rate Limits

Applications should treat rate limits as part of normal API operation and implement appropriate retry handling.

429

Too many requests

Slow the request rate and retry according to the response guidance.

Safe retries

Use request identifiers to help applications safely correlate repeated operations.

19 / PLATFORM

Webhooks

Webhooks allow applications to receive asynchronous Faigen events without continuously polling the API.

JSON
{
  "event": "ai.completed",
  "request_id": "req_123456",
  "action": "generate",
  "status": "completed"
}
20 / PLATFORM

Errors

Errors are returned as structured responses so applications can handle failures without losing their original content.

FAIGEN_AUTH
Authentication credentials are missing or invalid.
FAIGEN_INVALID
The supplied action or request payload is invalid.
FAIGEN_TIMEOUT
The request exceeded the configured processing timeout.
FAIGEN_UNAVAILABLE
The intelligence service is temporarily unavailable.
FAIGEN_LIMIT
The application has reached its configured usage limit.
21 / INTEGRATIONS

Firetip Integration

Firetip is one application that can consume the Faigen Intelligence Core. Faigen remains independent from Firetip and can be used by other applications and services.

01
Firetip Campaign or workflow
02
Faigen API Intelligence request
03
Faigen Core AI processing
04
Firetip Communication workflow
Faigen is not Firetip Firetip is an integration and consumer of Faigen. The Faigen Intelligence Core is designed as an independent AI platform.
22 / INTEGRATIONS

Custom Applications

Any authorised application capable of making HTTPS requests can integrate with Faigen.

SaaS platforms

Add intelligence features directly to application workflows.

API

Backend systems

Process content through server-side application services.

Automation

Connect AI operations to events and application workflows.

Communication systems

Add translation, optimisation and generation to communication infrastructure.

© 2026 Faigen AI · sCloud Infrastructure FAIGEN AI / INTELLIGENCE CORE