Create project
admin.organization.projects.create(ProjectCreateParams**kwargs ) -> Project
POST
/organization/projectsCreate a new project in the organization. Projects can be created and archived, but cannot be deleted.
Create project
import os
from openai import OpenAI
client = OpenAI(
admin_api_key=os.environ.get("OPENAI_ADMIN_KEY"), # This is the default and can be omitted
)
project = client.admin.organization.projects.create(
name="name",
)
print(project.id)Response example
{
"id": "proj_abc",
"object": "organization.project",
"name": "Project ABC",
"created_at": 1711471533,
"archived_at": null,
"status": "active"
}
Parameters
geography: Optional[str]
Create the project with the specified data residency region. Your organization must have access to Data residency functionality in order to use. See data residency controls to review the functionality and limitations of setting this field.
Deprecated: use residency instead. Do not provide both geography and residency.
Returns Examples
Response example
{
"id": "proj_abc",
"object": "organization.project",
"name": "Project ABC",
"created_at": 1711471533,
"archived_at": null,
"status": "active"
}