Skip to main content
Pinecone Docs

Search documentation

Type to search this documentation.

On this pageOverview

Index creation error - missing spec parameter

Fix the Pinecone create_index TypeError for a missing spec parameter by passing the spec argument that sets the index's deployment model, cloud, and region.

Using the new API, creating an index requires passing appropriate values into the spec parameter. Without this spec parameter, the create_index method raises the following error:

console
TypeError: Pinecone.create_index() missing 1 required positional argument: 'spec'

Set the spec parameter. For guidance on how to set this parameter, see Create an index.

Suggest an edit

Propose a replacement for this page. The site team reviews it before applying any changes.

Export
Documentation menu