---
title: "Generate Graph"
method: POST
path: "/graph/generate"
tags: ["graph"]
---

# Generate Graph

`POST /graph/generate`

Génère du code Graph Language à partir d'une requête utilisateur en français.

Args:
    request: Contient le prompt de l'utilisateur
    current_user: Utilisateur authentifié

Returns:
    GraphGenerationResponse: Code Graph Language généré

Raises:
    HTTPException: En cas d'erreur lors de la génération

## Request body

- GraphGenerationRequest
  - `prompt` string, required

## Response `200`

Successful Response

- GraphGenerationResponse
  - `graph_code` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/c407f3b5a05b/schema)
