SDKs that target API version
2026-07 don’t support creating pod-based indexes, and they reject creating an index from a collection. You can still list, describe, and delete existing collections. To create or restore a pod-based index, use an SDK version that targets an earlier API version, or send an earlier X-Pinecone-Api-Version with the REST API. To move a pod-based index to serverless, see Migrate a pod-based index to serverless.Create a pod index
To create a pod index, use the Create an index operation as follows:- Provide a
namefor the index. - Specify the
dimensionandmetricof the vectors you’ll store in the index. This should match the dimension and metric supported by your embedding model. - Set
spec.environmentto the environment where the index should be deployed. For Python, you also need to import theServerlessSpecclass. - Set
spec.pod_typeto the pod type and size that you want.