Projects
On this page you create a project, change its settings, and archive it when you are done.
A project holds your datasets, training jobs and hosted models (the API calls a hosted model an alias), and its slugs are part of every URL you call. Project routes require authentication and only the owner can use them; sharing a hosted model with other accounts, or making it public, is set on the hosted model, never by making a project public.
Create a project
POST /api/v1/projects creates a project:
{
"name": "Support",
"description": "Support conversations and models",
"type": "text",
"inference_save_percent": 0.0
}
type is text (the default) or embedding, and it never changes; see
Project types. The project's slug is created from the name
once and never changes, even if you rename the project, so URLs and hosted
model endpoints keep working.
inference_save_percent turns on auto-save for a text project. Despite its
name, it is a fraction from 0 to 1, not a percentage: 0.25 saves roughly
one in four of your own requests to the project's OpenAI-compatible chat and
text completion endpoints as chats. A value outside 0 to 1 answers 422.
Requests from accounts you shared a model with, and from public callers, are
never saved. See Dataset chats
for how saved requests are tagged and how to train on them.
Start from an example
To try training before you have data of your own, create a project that already holds a small public dataset. There is one example per project type:
id | Project type | Rows | License |
|---|---|---|---|
ledgar-contract-clauses | text | 300 chats | CC BY 4.0 |
scifact-claims | embedding | 611 training pairs | CC BY 4.0 (claims), ODC-By 1.0 (abstracts) |
- Contract clause classifier (
ledgar-contract-clauses): 300 clauses from public SEC filings, 30 for each of 10 clause types. Each chat has a system message listing the 10 labels, the clause, and its label as the answer. From LEDGAR (Tuggener et al., 2020), as distributed in LexGLUE (Chalkidis et al., 2022, dataset). - Scientific claim search (
scifact-claims): 611 scientific claims, each paired with a research abstract cited as evidence for it, with no negatives. From SciFact (Wadden et al., 2020), as distributed in BEIR (Thakur et al., 2021). Pairs that answer, or nearly copy, a SciFact test query were removed, so the test queries stay usable for evaluating what you train.
GET /api/v1/projects/examples lists them with their titles and descriptions
in English and Portuguese, row counts, licenses and attribution:
{
"examples": [
{
"id": "ledgar-contract-clauses",
"project_type": "text",
"title": {"en": "Contract clause classifier", "pt": "Classificador de cláusulas contratuais"},
"rows": 300,
"license": "CC BY 4.0"
}
]
}
POST /api/v1/projects/from-example creates the project and writes every row:
curl -X POST "https://reopenly.com/api/v1/projects/from-example" \
-H "Authorization: Bearer $REOPENLY_API_KEY" \
-H "Content-Type: application/json" \
--data '{"example_id": "ledgar-contract-clauses"}'
{
"status": "created",
"project": {"id": 14, "name": "Contract clause classifier", "slug": "contract-clause-classifier", "type": "text", "owner_slug": "acme"}
}
The response has the same shape as POST /api/v1/projects. name is optional
and defaults to the example's title; locale (en or pt, default en) picks
the language of that default name and of the project description. Every row is
tagged example and has source set to example, so you can filter by it or
remove it later; you cannot send example as a source yourself. The project is
then an ordinary project: add your own data, train with any settings, or
archive it.
The same rules as creating a project apply: the active-project quota, and
409 for a name already used by one of your projects, archived ones included.
Sending the same request twice therefore creates one project and answers the
second with 409; there is no idempotency key. An unknown example_id answers
404 with detail.code = "example_not_found". If the example's file cannot be
verified, the request answers 503 with detail.code = "example_unavailable"
and creates nothing: the project and its rows are written together or not at
all.
Update a project
PUT /api/v1/projects/{owner_slug}/{project_slug} changes the project's
name, description and inference_save_percent. Send only the fields you
want to change; omitted or null fields keep their value. For example, to
save about one request in four:
curl -X PUT "https://reopenly.com/api/v1/projects/acme/support" \
-H "Authorization: Bearer $REOPENLY_API_KEY" \
-H "Content-Type: application/json" \
--data '{"inference_save_percent": 0.25}'
The response is {"status": "updated", "project": {...}} with the updated
project. Renaming changes only the display name; the slug stays the same. A
name already used by another of your projects answers 409. An embedding
project cannot auto-save: a non-zero inference_save_percent answers 422
with detail.code = "project_capability_mismatch", while 0 is accepted.
type cannot be changed. An archived project is read-only, so unarchive it
first.
Project types
A project's type is chosen when it is created and never changes:
text: chat datasets, fine-tuned text-generation models, chat and text completions.embedding: datasets of training pairs, fine-tuned embedding models,/embeddings, the embedding Playground, Search and Search feedback. Start with the Quickstart for embeddings.
Both types share the same routes for projects, datasets, training jobs, hosted
models and billing; a route that only one type supports answers the other with
409 project_capability_mismatch. GET /api/v1/projects/capabilities lists the
types you can create and what each supports. Projects created earlier with
another type can stay readable, but only text and embedding can be created.
Archive instead of delete
Projects are archived, never deleted. Archiving is idempotent and reversible.
It keeps chats, training records, hosted models, their files and billing
history, and makes the project read-only. Archive is refused with 409 and
detail.code = "project_has_nonterminal_work" while training is pending,
running or awaiting cancellation. Cancel that work, or wait for it to finish,
first.
An account can have up to 100 active projects by default, shared across
project types. A platform administrator can change this quota. Archived
projects do not count toward it, so archiving frees a slot. Creating a project,
or unarchiving one, while you are at the quota answers 400 with
detail.code = "bad_request" and a message that names the current quota, such as
Maximum number of projects (100) per user exceeded. Lowering the quota keeps
existing projects; archive some to free slots before creating or restoring more.
Unarchiving a project that is already active succeeds without checking the
quota. Inference against an archived project's OpenAI-compatible URL returns 404 with
error.code = "project_archived" and no Retry-After.
Reference
GET /api/v1/projects
POST /api/v1/projects
GET /api/v1/projects/capabilities
GET /api/v1/projects/examples
POST /api/v1/projects/from-example
GET /api/v1/projects/{owner_slug}/{project_slug}
PUT /api/v1/projects/{owner_slug}/{project_slug}
GET /api/v1/projects/{owner_slug}/{project_slug}/tags
POST /api/v1/projects/{owner_slug}/{project_slug}/archive
POST /api/v1/projects/{owner_slug}/{project_slug}/unarchive
Listing. GET /api/v1/projects always returns
{projects,next_cursor,total_count}. Use limit (default 25, maximum 100) and
cursor directly. Cursors belong to your account and archive filter. Archived
projects are excluded unless include_archived=true. Project cards include
bounded counts for chats, jobs and hosted models.
Account-wide reads are separate:
GET /api/v1/dashboardreturns a fixed-size global summary.GET /api/v1/modelsreturns the hosted models you can use across projects, with cursor pagination.GET /api/v1/activityreturns your cursor-paginated history of training jobs and hosted models created.